Skip to content
Permalink
Browse files Browse the repository at this point in the history
...
  • Loading branch information
Cristy committed Mar 5, 2019
1 parent 27cf421 commit 07eebcd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MagickCore/locale.c
Expand Up @@ -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)));
}

/*
Expand Down Expand Up @@ -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)));
}

/*
Expand Down

0 comments on commit 07eebcd

Please sign in to comment.