From b6af4a59b2597fbbedca1c2d388a48a917fa7e72 Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 6 Oct 2009 13:56:23 +0000 Subject: [PATCH] --- magick/string.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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') -- 2.40.0