X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmemcasecmp.c;h=6ae7c4f65dd0f742ee99139ddd95bada304456eb;hb=b344de996cd51f8a2f2558a3172016b64d99c622;hp=4873651b3f76d5abd8afb88167268c1015f2531e;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/memcasecmp.c b/lib/memcasecmp.c index 4873651b3..6ae7c4f65 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-2011 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; }