From: cristy Date: Tue, 6 Oct 2009 13:56:23 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~10572 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6af4a59b2597fbbedca1c2d388a48a917fa7e72;p=imagemagick --- diff --git a/magick/string.c b/magick/string.c index 269283913..5d8996189 100644 --- a/magick/string.c +++ b/magick/string.c @@ -1337,14 +1337,14 @@ MagickExport long LocaleCompare(const char *p,const char *q) return((long) strcasecmp(p,q)); #else { - register unsigned int + register int c, d; for ( ; ; ) { - c=(unsigned int) *p; - d=(unsigned int) *q; + c=(int) *p; + d=(int) *q; if ((c == '\0') || (AsciiMap[c] != AsciiMap[d])) break; p++; @@ -1434,17 +1434,17 @@ MagickExport long LocaleNCompare(const char *p,const char *q, return((long) strncasecmp(p,q,length)); #else { - register size_t - n; - - register unsigned int + register int c, d; + register size_t + n; + for (n=length; n != 0; n--) { - c=(unsigned int) *p; - d=(unsigned int) *q; + c=(int) *p; + d=(int) *q; if (AsciiMap[c] != AsciiMap[d]) return(AsciiMap[c]-AsciiMap[d]); if (c == '\0')