(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 14 Nov 2013 16:20:04 +0000 (16:20 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 14 Nov 2013 16:20:04 +0000 (16:20 +0000)
MagickCore/display.c
MagickCore/fx.c
MagickCore/morphology.c
MagickCore/vms.c
MagickCore/xwindow.c

index eecdcba83b1347e57e598203b82b518c7a6add32..2c7a3a8b2aff2a3160bca67aec1f876d11959008 100644 (file)
@@ -13838,7 +13838,7 @@ MagickExport MagickBooleanType XDisplayBackgroundImage(Display *display,
     window_info.id=root_window;
   else
     {
-      if (isdigit((unsigned char) *resources.window_id) != 0)
+      if (isdigit((int) ((unsigned char) *resources.window_id)) != 0)
         window_info.id=XWindowByID(display,root_window,
           (Window) strtol((char *) resources.window_id,(char **) NULL,0));
       if (window_info.id == (Window) NULL)
index 778bbdea5d687aad30acf38a281b1691dc5219da..43eb658dc7d6ec77d0340b693838c1ca4dc2a067 100644 (file)
@@ -1309,7 +1309,7 @@ static double FxGetSymbol(FxInfo *fx_info,const PixelChannel channel,
   level=0;
   point.x=(double) x;
   point.y=(double) y;
-  if (isalpha((int) *(p+1)) == 0)
+  if (isalpha((int) ((unsigned char) *(p+1))) == 0)
     {
       if (strchr("suv",(int) *p) != (char *) NULL)
         {
@@ -1351,7 +1351,7 @@ static double FxGetSymbol(FxInfo *fx_info,const PixelChannel channel,
           if (*p == '.')
             p++;
         }
-      if ((*p == 'p') && (isalpha((int) *(p+1)) == 0))
+      if ((*p == 'p') && (isalpha((int) ((unsigned char) *(p+1))) == 0))
         {
           p++;
           if (*p == '{')
index 359413f06d1d57a2ecd5a494f47101e3f86956ba..06f5ea4c68e52a295eb36102c42dcdca52f3cecc 100644 (file)
@@ -518,7 +518,7 @@ MagickExport KernelInfo *AcquireKernelInfo(const char *kernel_string)
     if ( *token != ';' ) {
 
       /* tokens starting with alpha is a Named kernel */
-      if (isalpha((int) *token) != 0)
+      if (isalpha((int) ((unsigned char) *token)) != 0)
         new_kernel = ParseKernelName(p);
       else /* otherwise a user defined kernel array */
         new_kernel = ParseKernelArray(p);
index f4d02d1ec4c47685ca5326b001758a97ac7eecab..355c6dce956b508c15194f078e2d52e65283b51c 100644 (file)
@@ -195,7 +195,7 @@ struct dirent *readdir(DIR *directory)
   */
   buffer[sizeof(buffer)-1]='\0';
   for (p=buffer; *p; p++)
-    if (isupper((unsigned char) *p))
+    if (isupper((int) ((unsigned char) *p)))
       *p=tolower(*p);
   /*
     Skip any directory component and just copy the name.
index 1d49525b7f7f37ec2099e67fe3a999f440ee20f1..a58c6840ff73f6fe6c462334b362113e928c58d3 100644 (file)
@@ -4942,7 +4942,7 @@ MagickExport Image *XImportImage(const ImageInfo *image_info,
           /*
             Select window by ID or name.
           */
-          if (isdigit((unsigned char) *image_info->filename) != 0)
+          if (isdigit((int) ((unsigned char) *image_info->filename)) != 0)
             target=XWindowByID(display,root,(Window)
               strtol(image_info->filename,(char **) NULL,0));
           if (target == (Window) NULL)
@@ -5295,7 +5295,7 @@ MagickPrivate XWindows *XInitializeWindows(Display *display,
   windows->group_leader.id=(Window) NULL;
   if (resource_info->window_group != (char *) NULL)
     {
-      if (isdigit((unsigned char) *resource_info->window_group) != 0)
+      if (isdigit((int) ((unsigned char) *resource_info->window_group)) != 0)
         windows->group_leader.id=XWindowByID(display,root_window,(Window)
           strtol((char *) resource_info->window_group,(char **) NULL,0));
       if (windows->group_leader.id == (Window) NULL)
@@ -8929,7 +8929,7 @@ MagickExport MagickBooleanType XRemoteCommand(Display *display,
       /*
         Search window hierarchy and identify any clients by name or ID.
       */
-      if (isdigit((unsigned char) *window) != 0)
+      if (isdigit((int) ((unsigned char) *window)) != 0)
         remote_window=XWindowByID(display,root_window,(Window)
           strtol((char *) window,(char **) NULL,0));
       if (remote_window == (Window) NULL)