]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Tue, 5 Mar 2019 00:25:01 +0000 (19:25 -0500)
committerCristy <mikayla-grace@urban-warrior.org>
Tue, 5 Mar 2019 00:25:01 +0000 (19:25 -0500)
MagickCore/locale.c

index d30960e9db377b4b8e578568cf1af0835eff19d1..158b7ef92d8cbbee2e44d3ea3fc98f5100b756dc 100644 (file)
@@ -1523,9 +1523,9 @@ MagickExport int LocaleLowercase(const int c)
 {
 #if defined(MAGICKCORE_LOCALE_SUPPORT)
   if (c_locale != (locale_t) NULL)
-    return(tolower_l(c,c_locale));
+    return(tolower_l((int) ((unsigned char) c),c_locale));
 #endif
-  return(tolower(c));
+  return(tolower((int) ((unsigned char) c)));
 }
 \f
 /*
@@ -1661,9 +1661,9 @@ MagickExport int LocaleUppercase(const int c)
 {
 #if defined(MAGICKCORE_LOCALE_SUPPORT)
   if (c_locale != (locale_t) NULL)
-    return(toupper_l(c,c_locale));
+    return(toupper_l((int) ((unsigned char) c),c_locale));
 #endif
-  return(toupper(c));
+  return(toupper((int) ((unsigned char) c)));
 }
 \f
 /*