X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmemcasecmp.c;h=e85add4e9d0b15d190e866e660cb1876cc02836d;hb=4779b635ef35c7b0bc4044fcb5bc746d06f158c4;hp=4873651b3f76d5abd8afb88167268c1015f2531e;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/memcasecmp.c b/lib/memcasecmp.c index 4873651b3..e85add4e9 100644 --- a/lib/memcasecmp.c +++ b/lib/memcasecmp.c @@ -1,5 +1,6 @@ /* Case-insensitive buffer comparator. - Copyright (C) 1996, 1997, 2000, 2003, 2006 Free Software Foundation, Inc. + Copyright (C) 1996-1997, 2000, 2003, 2006, 2009-2013 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,9 +41,9 @@ memcasecmp (const void *vs1, const void *vs2, size_t n) int U1 = toupper (u1); int U2 = toupper (u2); int diff = (UCHAR_MAX <= INT_MAX ? U1 - U2 - : U1 < U2 ? -1 : U2 < U1); + : U1 < U2 ? -1 : U2 < U1); if (diff) - return diff; + return diff; } return 0; }