]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 7 Nov 2013 14:18:46 +0000 (14:18 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 7 Nov 2013 14:18:46 +0000 (14:18 +0000)
25 files changed:
MagickCore/coder.c
MagickCore/color.c
MagickCore/configure.c
MagickCore/delegate.c
MagickCore/display.c
MagickCore/draw.c
MagickCore/feature.c
MagickCore/fx.c
MagickCore/locale.c
MagickCore/log.c
MagickCore/magic.c
MagickCore/mime.c
MagickCore/policy.c
MagickCore/property.c
MagickCore/type.c
MagickCore/utility.c
MagickCore/xwindow.c
MagickWand/magick-image.c
MagickWand/mogrify.c
MagickWand/operation.c
coders/cin.c
coders/dpx.c
coders/jpeg.c
coders/psd.c
coders/webp.c

index 9076f0aa7f3a5b87ebeb19fbcf63754fcb05fbe4..2cd3a25272a80e2e43fdbb04a9b1f5ce623a502a 100644 (file)
@@ -772,7 +772,7 @@ static MagickBooleanType LoadCoderList(const char *xml,const char *filename,
                     (void) CopyMagickString(path,token,MaxTextExtent);
                   else
                     (void) ConcatenateMagickString(path,token,MaxTextExtent);
-                  xml=FileToString(path,~0,exception);
+                  xml=FileToString(path,~0UL,exception);
                   if (xml != (char *) NULL)
                     {
                       status=LoadCoderList(xml,path,depth+1,exception);
index b8bb657c3b4c53af811b623764b6e7ce43d91096..167b216986e885207e4715b667160f1569b6a11f 100644 (file)
@@ -1923,7 +1923,7 @@ static MagickBooleanType LoadColorList(const char *xml,const char *filename,
                     (void) CopyMagickString(path,token,MaxTextExtent);
                   else
                     (void) ConcatenateMagickString(path,token,MaxTextExtent);
-                  xml=FileToString(path,~0,exception);
+                  xml=FileToString(path,~0UL,exception);
                   if (xml != (char *) NULL)
                     {
                       status=LoadColorList(xml,path,depth+1,exception);
index 79017005848bb5dc59e0a27b6ab55fb8c220d335..a268403d1b664be38eedee7e6aa373086bdce7e6 100644 (file)
@@ -1125,7 +1125,7 @@ static MagickBooleanType LoadConfigureList(const char *xml,const char *filename,
                     (void) CopyMagickString(path,token,MaxTextExtent);
                   else
                     (void) ConcatenateMagickString(path,token,MaxTextExtent);
-                  xml=FileToString(path,~0,exception);
+                  xml=FileToString(path,~0UL,exception);
                   if (xml != (char *) NULL)
                     {
                       status=LoadConfigureList(xml,path,depth+1,exception);
index 44da45b26e07f0fcc1e1d1a46957d071066c9682..8f61a2e690f3bd5e045ee0b2c1805f4f45620e07 100644 (file)
@@ -1308,7 +1308,7 @@ static MagickBooleanType LoadDelegateList(const char *xml,const char *filename,
                     (void) CopyMagickString(path,token,MaxTextExtent);
                   else
                     (void) ConcatenateMagickString(path,token,MaxTextExtent);
-                  xml=FileToString(path,~0,exception);
+                  xml=FileToString(path,~0UL,exception);
                   if (xml != (char *) NULL)
                     {
                       status=LoadDelegateList(xml,path,depth+1,exception);
index cc5ca7b211362e2af55abb3e6a6128104e7a7fff..eecdcba83b1347e57e598203b82b518c7a6add32 100644 (file)
@@ -10375,7 +10375,7 @@ static Image *XOpenImage(Display *display,XResourceInfo *resource_info,
       /*
         Unknown image format.
       */
-      text=FileToString(filename,~0,exception);
+      text=FileToString(filename,~0UL,exception);
       if (text == (char *) NULL)
         return((Image *) NULL);
       textlist=StringToList(text);
index 7733c32aa4aefc82ca77c637a3475061cf9920d2..2b52814afba109543512124cb7fd9c08c7bf9cdd 100644 (file)
@@ -1755,7 +1755,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
   if (*draw_info->primitive != '@')
     primitive=AcquireString(draw_info->primitive);
   else
-    primitive=FileToString(draw_info->primitive+1,~0,exception);
+    primitive=FileToString(draw_info->primitive+1,~0UL,exception);
   if (primitive == (char *) NULL)
     return(MagickFalse);
   primitive_extent=(double) strlen(primitive);
@@ -5286,6 +5286,7 @@ static size_t TracePath(PrimitiveInfo *primitive_info,const char *path)
   start.y=0.0;
   number_coordinates=0;
   z_count=0;
+  end=0;
   primitive_type=primitive_info->primitive;
   q=primitive_info;
   for (p=path; *p != '\0'; )
index 2b339aa758c692ecccf1f4b3c128913a58e1f312..fe9d991a24173c1030b31333b1efec510ae161a1 100644 (file)
@@ -214,11 +214,11 @@ MagickExport ChannelFeatures *GetImageFeatures(const Image *image,
     }
   for (i=0; i <= (ssize_t) MaxMap; i++)
   {
-    grays[i].red=(~0U);
-    grays[i].green=(~0U);
-    grays[i].blue=(~0U);
-    grays[i].alpha=(~0U);
-    grays[i].black=(~0U);
+    grays[i].red=(~0UL);
+    grays[i].green=(~0UL);
+    grays[i].blue=(~0UL);
+    grays[i].alpha=(~0UL);
+    grays[i].black=(~0UL);
   }
   status=MagickTrue;
   image_view=AcquireVirtualCacheView(image,exception);
@@ -270,17 +270,17 @@ MagickExport ChannelFeatures *GetImageFeatures(const Image *image,
   (void) ResetMagickMemory(&gray,0,sizeof(gray));
   for (i=0; i <= (ssize_t) MaxMap; i++)
   {
-    if (grays[i].red != ~0U)
+    if (grays[i].red != ~0UL)
       grays[gray.red++].red=grays[i].red;
-    if (grays[i].green != ~0U)
+    if (grays[i].green != ~0UL)
       grays[gray.green++].green=grays[i].green;
-    if (grays[i].blue != ~0U)
+    if (grays[i].blue != ~0UL)
       grays[gray.blue++].blue=grays[i].blue;
     if (image->colorspace == CMYKColorspace)
-      if (grays[i].black != ~0U)
+      if (grays[i].black != ~0UL)
         grays[gray.black++].black=grays[i].black;
     if (image->alpha_trait == BlendPixelTrait)
-      if (grays[i].alpha != ~0U)
+      if (grays[i].alpha != ~0UL)
         grays[gray.alpha++].alpha=grays[i].alpha;
   }
   /*
index e895196efaf51d9bc9fade18e6789b4afae45c24..e30a8bf079d82cd9f04fbb4273fe8b33a700dad5 100644 (file)
@@ -2996,7 +2996,7 @@ static FxInfo **AcquireFxThreadSet(const Image *image,const char *expression,
   if (*expression != '@')
     fx_expression=ConstantString(expression);
   else
-    fx_expression=FileToString(expression+1,~0,exception);
+    fx_expression=FileToString(expression+1,~0UL,exception);
   for (i=0; i < (ssize_t) number_threads; i++)
   {
     MagickBooleanType
index af0284ea054e822ebe5567dda852d24e2485a20d..c7b05085d4c0dd04a5eb692b7a0e2e0150e8bd97 100644 (file)
@@ -1185,7 +1185,7 @@ static MagickBooleanType LoadLocaleList(const char *xml,const char *filename,
                     (void) CopyMagickString(path,token,MaxTextExtent);
                   else
                     (void) ConcatenateMagickString(path,token,MaxTextExtent);
-                  xml=FileToString(path,~0,exception);
+                  xml=FileToString(path,~0UL,exception);
                   if (xml != (char *) NULL)
                     {
                       status=LoadLocaleList(xml,path,locale,depth+1,exception);
index 27f1d39ed5f2ebb9d7e5fe6ad1bbde9fc74e1ccc..a60e0e6b2b4fe2863bd2bb2d6c00e8352ac1c364 100644 (file)
@@ -1380,7 +1380,7 @@ static MagickBooleanType LoadLogList(const char *xml,const char *filename,
                     (void) CopyMagickString(path,token,MaxTextExtent);
                   else
                     (void) ConcatenateMagickString(path,token,MaxTextExtent);
-                  xml=FileToString(path,~0,exception);
+                  xml=FileToString(path,~0UL,exception);
                   if (xml != (char *) NULL)
                     {
                       status&=LoadLogList(xml,path,depth+1,exception);
index b706bdc6f7c683fa07c191498b3ee77d128325e2..a854cd4bb9fb54af8cf5580b753fe280e71fb244 100644 (file)
@@ -756,7 +756,7 @@ static MagickBooleanType LoadMagicList(const char *xml,const char *filename,
                     (void) CopyMagickString(path,token,MaxTextExtent);
                   else
                     (void) ConcatenateMagickString(path,token,MaxTextExtent);
-                  xml=FileToString(path,~0,exception);
+                  xml=FileToString(path,~0UL,exception);
                   if (xml != (char *) NULL)
                     {
                       status=LoadMagicList(xml,path,depth+1,exception);
index 0ce4cdc17728ed4f77733869ee8270011949cc6d..6f765d842f379e147dafa1be2f8e98aa51920d12 100644 (file)
@@ -799,7 +799,7 @@ static MagickBooleanType LoadMimeList(const char *xml,const char *filename,
               (void) CopyMagickString(path,attribute,MaxTextExtent);
             else
               (void) ConcatenateMagickString(path,attribute,MaxTextExtent);
-            xml=FileToString(path,~0,exception);
+            xml=FileToString(path,~0UL,exception);
             if (xml != (char *) NULL)
               {
                 status=LoadMimeList(xml,path,depth+1,exception);
index 14ee24b5b15b74a9fe09b494bb486d956ba318be..6a196dbe185ef28de97e99faca505f5b4d301a3e 100644 (file)
@@ -735,7 +735,7 @@ static MagickBooleanType LoadPolicyList(const char *xml,const char *filename,
                     (void) CopyMagickString(path,token,MaxTextExtent);
                   else
                     (void) ConcatenateMagickString(path,token,MaxTextExtent);
-                  xml=FileToString(path,~0,exception);
+                  xml=FileToString(path,~0UL,exception);
                   if (xml != (char *) NULL)
                     {
                       status=LoadPolicyList(xml,path,depth+1,exception);
index 5108c481433f55d68c25ddc13c6ba9f93ce23f29..e4cdbb174f96bf9a5018b6fbec52cbbe5a942276 100644 (file)
@@ -557,7 +557,7 @@ static inline unsigned short ReadPropertyMSBShort(const unsigned char **p,
     value;
 
   if (*length < 2)
-    return((unsigned short) ~0U);
+    return((unsigned short) ~0UL);
   for (i=0; i < 2; i++)
   {
     c=(int) (*(*p)++);
@@ -3155,7 +3155,7 @@ MagickExport char *InterpretImageProperties(ImageInfo *image_info,
            OptionError,"UnableToAccessPath","%s",p);
        return((char *) NULL);
      }
-     return(FileToString(p,~0,exception));
+     return(FileToString(p,~0UL,exception));
   }
 
   /*
index 8a854f326700fee9079f2c2e50715273197fdb52..9a68479aa49ab5ada038cd695bb863a328ff235e 100644 (file)
@@ -1060,7 +1060,7 @@ static MagickBooleanType LoadTypeList(const char *xml,const char *filename,
                   else
                     (void) ConcatenateMagickString(path,token,MaxTextExtent);
                   sans_exception=AcquireExceptionInfo();
-                  xml=FileToString(path,~0,sans_exception);
+                  xml=FileToString(path,~0UL,sans_exception);
                   sans_exception=DestroyExceptionInfo(sans_exception);
                   if (xml != (char *) NULL)
                     {
@@ -1329,7 +1329,7 @@ static MagickBooleanType LoadTypeLists(const char *filename,
       */
       (void) FormatLocaleString(path,MaxTextExtent,"%s%s%s",font_path,
         DirectorySeparator,filename);
-      option=FileToString(path,~0,exception);
+      option=FileToString(path,~0UL,exception);
       if (option != (void *) NULL)
         {
           status&=LoadTypeList(option,path,0,exception);
index 5cff7ade2132f6b0a96639935a5c49209010e87e..3fdc979d4c99f1d6af6f38669dff63769227b466 100644 (file)
@@ -834,7 +834,7 @@ MagickExport MagickBooleanType ExpandFilenames(int *number_arguments,
           Generate file list from file list (e.g. @filelist.txt).
         */
         exception=AcquireExceptionInfo();
-        files=FileToString(option+1,~0,exception);
+        files=FileToString(option+1,~0UL,exception);
         exception=DestroyExceptionInfo(exception);
         if (files == (char *) NULL)
           continue;
index 248e497576f43b307504bcbda759cf3ee6627bd5..1d49525b7f7f37ec2099e67fe3a999f440ee20f1 100644 (file)
@@ -2059,7 +2059,7 @@ MagickPrivate void XDisplayImageInfo(Display *display,
   */
   (void) IdentifyImage(image,file,MagickTrue,exception);
   (void) fclose(file);
-  text=FileToString(filename,~0,exception);
+  text=FileToString(filename,~0UL,exception);
   (void) RelinquishUniqueFileResource(filename);
   if (text == (char *) NULL)
     {
index 845e6b3badb855e9a8a8028cd7f2090f912403c1..7c0077a66bbac7714949c8c5c636f39b6ea2fdff 100644 (file)
@@ -5946,7 +5946,7 @@ WandExport char *MagickIdentifyImage(MagickWand *wand)
     }
   (void) IdentifyImage(wand->images,file,MagickTrue,wand->exception);
   (void) fclose(file);
-  description=FileToString(filename,~0,wand->exception);
+  description=FileToString(filename,~0UL,wand->exception);
   (void) RelinquishUniqueFileResource(filename);
   return(description);
 }
index 443a423ecad9b58cc04c5e4e268e677bf982e880..f4f04293929382842615fad2a22ce6ae76fd839f 100644 (file)
@@ -991,7 +991,7 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc,
               Color correct with a color decision list.
             */
             (void) SyncImageSettings(mogrify_info,*image,exception);
-            color_correction_collection=FileToString(argv[i+1],~0,exception);
+            color_correction_collection=FileToString(argv[i+1],~0UL,exception);
             if (color_correction_collection == (char *) NULL)
               break;
             (void) ColorDecisionListImage(*image,color_correction_collection,
@@ -1255,7 +1255,7 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc,
               Decipher pixels.
             */
             (void) SyncImageSettings(mogrify_info,*image,exception);
-            passkey=FileToStringInfo(argv[i+1],~0,exception);
+            passkey=FileToStringInfo(argv[i+1],~0UL,exception);
             if (passkey != (StringInfo *) NULL)
               {
                 (void) PasskeyDecipherImage(*image,passkey,exception);
@@ -1448,7 +1448,7 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc,
               Encipher pixels.
             */
             (void) SyncImageSettings(mogrify_info,*image,exception);
-            passkey=FileToStringInfo(argv[i+1],~0,exception);
+            passkey=FileToStringInfo(argv[i+1],~0UL,exception);
             if (passkey != (StringInfo *) NULL)
               {
                 (void) PasskeyEncipherImage(*image,passkey,exception);
index 84790022649cfcc0e5859f27ec53481c0a697a28..86b18244b7617013c8488dad50a7a139983a9d34 100644 (file)
@@ -1912,7 +1912,7 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand,
           /*
             Color correct with a color decision list.
           */
-          color_correction_collection=FileToString(arg1,~0,_exception);
+          color_correction_collection=FileToString(arg1,~0UL,_exception);
           if (color_correction_collection == (char *) NULL)
             break;
           (void) ColorDecisionListImage(_image,color_correction_collection,
@@ -2135,7 +2135,7 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand,
           StringInfo
             *passkey;
 
-          passkey=FileToStringInfo(arg1,~0,_exception);
+          passkey=FileToStringInfo(arg1,~0UL,_exception);
           if (passkey == (StringInfo *) NULL)
             CLIWandExceptArgBreak(OptionError,"InvalidArgument",option,arg1);
 
@@ -2252,7 +2252,7 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand,
           StringInfo
             *passkey;
 
-          passkey=FileToStringInfo(arg1,~0,_exception);
+          passkey=FileToStringInfo(arg1,~0UL,_exception);
           if (passkey != (StringInfo *) NULL)
             {
               (void) PasskeyEncipherImage(_image,passkey,_exception);
index a842977dc90b47bebe9564bb86575e6f55dfa30c..899bfe5a56352363b750d728d6f7f77c2cc2215d 100644 (file)
@@ -476,7 +476,7 @@ static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception)
   */
   cin.image.orientation=(unsigned char) ReadBlobByte(image);
   offset++;
-  if (cin.image.orientation != (unsigned char) (~0U))
+  if (cin.image.orientation != (unsigned char) (~0UL))
     (void) FormatImageProperty(image,"dpx:image.orientation","%d",
       cin.image.orientation);
   switch (cin.image.orientation)
index 8229773d07cf7ee03aa9b080e177e2535217afe8..7c40e63cef4344727e86d2ad4dcaf77eb8a1ed74 100644 (file)
@@ -718,7 +718,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
   offset+=4;
   dpx.file.ditto_key=ReadBlobLong(image);
   offset+=4;
-  if (dpx.file.ditto_key != ~0U)
+  if (dpx.file.ditto_key != ~0UL)
     (void) FormatImageProperty(image,"dpx:file.ditto.key","%u",
       dpx.file.ditto_key);
   dpx.file.generic_size=ReadBlobLong(image);
@@ -764,7 +764,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
     }
   dpx.file.encrypt_key=ReadBlobLong(image);
   offset+=4;
-  if (dpx.file.encrypt_key != ~0U)
+  if (dpx.file.encrypt_key != ~0UL)
     (void) FormatImageProperty(image,"dpx:file.encrypt_key","%u",
       dpx.file.encrypt_key);
   offset+=ReadBlob(image,sizeof(dpx.file.reserve),(unsigned char *)
@@ -849,12 +849,12 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
       */
       dpx.orientation.x_offset=ReadBlobLong(image);
       offset+=4;
-      if (dpx.orientation.x_offset != ~0U)
+      if (dpx.orientation.x_offset != ~0UL)
         (void) FormatImageProperty(image,"dpx:orientation.x_offset","%u",
           dpx.orientation.x_offset);
       dpx.orientation.y_offset=ReadBlobLong(image);
       offset+=4;
-      if (dpx.orientation.y_offset != ~0U)
+      if (dpx.orientation.y_offset != ~0UL)
         (void) FormatImageProperty(image,"dpx:orientation.y_offset","%u",
           dpx.orientation.y_offset);
       dpx.orientation.x_center=ReadBlobFloat(image);
@@ -869,12 +869,12 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
           dpx.orientation.y_center);
       dpx.orientation.x_size=ReadBlobLong(image);
       offset+=4;
-      if (dpx.orientation.x_size != ~0U)
+      if (dpx.orientation.x_size != ~0UL)
         (void) FormatImageProperty(image,"dpx:orientation.x_size","%u",
           dpx.orientation.x_size);
       dpx.orientation.y_size=ReadBlobLong(image);
       offset+=4;
-      if (dpx.orientation.y_size != ~0U)
+      if (dpx.orientation.y_size != ~0UL)
         (void) FormatImageProperty(image,"dpx:orientation.y_size","%u",
           dpx.orientation.y_size);
       offset+=ReadBlob(image,sizeof(dpx.orientation.filename),(unsigned char *)
@@ -902,8 +902,8 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
         dpx.orientation.border[i]=ReadBlobShort(image);
         offset+=2;
       }
-      if ((dpx.orientation.border[0] != (unsigned short) (~0U)) &&
-          (dpx.orientation.border[1] != (unsigned short) (~0U)))
+      if ((dpx.orientation.border[0] != (unsigned short) (~0UL)) &&
+          (dpx.orientation.border[1] != (unsigned short) (~0UL)))
         (void) FormatImageProperty(image,"dpx:orientation.border","%dx%d%+d%+d",          dpx.orientation.border[0],dpx.orientation.border[1],
           dpx.orientation.border[2],dpx.orientation.border[3]);
       for (i=0; i < 2; i++)
@@ -911,8 +911,8 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
         dpx.orientation.aspect_ratio[i]=ReadBlobLong(image);
         offset+=4;
       }
-      if ((dpx.orientation.aspect_ratio[0] != ~0U) &&
-          (dpx.orientation.aspect_ratio[1] != ~0U))
+      if ((dpx.orientation.aspect_ratio[0] != ~0UL) &&
+          (dpx.orientation.aspect_ratio[1] != ~0UL))
         (void) FormatImageProperty(image,"dpx:orientation.aspect_ratio",
           "%ux%u",dpx.orientation.aspect_ratio[0],
           dpx.orientation.aspect_ratio[1]);
@@ -953,17 +953,17 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
           dpx.film.format);
       dpx.film.frame_position=ReadBlobLong(image);
       offset+=4;
-      if (dpx.film.frame_position != ~0U)
+      if (dpx.film.frame_position != ~0UL)
         (void) FormatImageProperty(image,"dpx:film.frame_position","%u",
           dpx.film.frame_position);
       dpx.film.sequence_extent=ReadBlobLong(image);
       offset+=4;
-      if (dpx.film.sequence_extent != ~0U)
+      if (dpx.film.sequence_extent != ~0UL)
         (void) FormatImageProperty(image,"dpx:film.sequence_extent","%u",
           dpx.film.sequence_extent);
       dpx.film.held_count=ReadBlobLong(image);
       offset+=4;
-      if (dpx.film.held_count != ~0U)
+      if (dpx.film.held_count != ~0UL)
         (void) FormatImageProperty(image,"dpx:film.held_count","%u",
           dpx.film.held_count);
       dpx.film.frame_rate=ReadBlobFloat(image);
@@ -1084,7 +1084,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
       offset+=ReadBlob(image,sizeof(dpx.user.id),(unsigned char *) dpx.user.id);
       if (*dpx.user.id != '\0')
         (void) FormatImageProperty(image,"dpx:user.id","%.32s",dpx.user.id);
-      if ((dpx.file.user_size != ~0U) &&
+      if ((dpx.file.user_size != ~0UL) &&
           ((size_t) dpx.file.user_size > sizeof(dpx.user.id)))
         {
           StringInfo
@@ -1112,7 +1112,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
     /*
       Convert DPX raster image to pixel packets.
     */
-    if ((dpx.image.image_element[n].data_offset != (unsigned int) (~0U)) &&
+    if ((dpx.image.image_element[n].data_offset != (unsigned int) (~0UL)) &&
         (dpx.image.image_element[n].data_offset != 0U))
       {
          MagickOffsetType
@@ -1574,7 +1574,7 @@ static MagickBooleanType WriteDPXImage(const ImageInfo *image_info,Image *image,
     (void) strncpy(dpx.file.copyright,value,sizeof(dpx.file.copyright));
   offset+=WriteBlob(image,sizeof(dpx.file.copyright),(unsigned char *)
     dpx.file.copyright);
-  dpx.file.encrypt_key=(~0U);
+  dpx.file.encrypt_key=(~0UL);
   offset+=WriteBlobLong(image,dpx.file.encrypt_key);
   offset+=WriteBlob(image,sizeof(dpx.file.reserve),(unsigned char *)
     dpx.file.reserve);
index 0ad5e88231ece42fe790079ed58320fe842c0b26..5dbe2fe508787a8ab04d5636454f3b15995277d9 100644 (file)
@@ -1651,7 +1651,7 @@ static QuantizationTable *GetQuantizationTable(const char *filename,
   (void) LogMagickEvent(ConfigureEvent,GetMagickModule(),
     "Loading quantization tables \"%s\" ...",filename);
   table=(QuantizationTable *) NULL;
-  xml=FileToString(filename,~0U,exception);
+  xml=FileToString(filename,~0UL,exception);
   if (xml == (char *) NULL)
     return(table);
   quantization_tables=NewXMLTree(xml,exception);
index 9ae9e3a4ac12f42ff2e393c052fc82edbe5ad187..ce41709952b1cfc7db0decc943c7388ee9236423 100644 (file)
@@ -1228,7 +1228,7 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception)
               Allocate layered image.
             */
             layer_info[i].image=CloneImage(image,layer_info[i].page.width,
-              layer_info[i].page.height == ~0U ? 1 : layer_info[i].page.height,
+              layer_info[i].page.height == ~0UL ? 1 : layer_info[i].page.height,
               MagickFalse,exception);
             if (layer_info[i].image == (Image *) NULL)
               {
index 25a31e6868a30978fc8867e4b193f5624960687c..dd72bea368c1c41837e4e19e9ce7eb96b26dd894 100644 (file)
@@ -168,7 +168,7 @@ static MagickBooleanType IsWEBPImageLossless(const unsigned char *stream,
 #define TAG_SIZE  4
 #define CHUNK_SIZE_BYTES  4
 #define CHUNK_HEADER_SIZE  8
-#define MAX_CHUNK_PAYLOAD  (~0U-CHUNK_HEADER_SIZE-1)
+#define MAX_CHUNK_PAYLOAD  (~0UL-CHUNK_HEADER_SIZE-1)
 
   ssize_t
     offset;