]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 5 Jan 2015 23:19:48 +0000 (23:19 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 5 Jan 2015 23:19:48 +0000 (23:19 +0000)
MagickCore/nt-base.c
coders/pcx.c
coders/pdf.c
coders/ps.c

index 74319ef09a71a621b434cf2d81f59d8b3caffe70..f3c6d4bd7ca1c11dec45d89c9f254801b6ef0a11 100644 (file)
@@ -940,8 +940,8 @@ MagickPrivate MagickBooleanType NTGetModulePath(const char *module,char *path)
 %
 */
 
-static int NTGetRegistryValue(HKEY root,const char *key,DWORD flags,const char *name,
-  char *value,int *length)
+static int NTGetRegistryValue(HKEY root,const char *key,DWORD flags,
+  const char *name,char *value,int *length)
 {
   BYTE
     byte,
@@ -1404,9 +1404,9 @@ MagickPrivate int NTGhostscriptLoadDLL(void)
     lt_dlsym(ghost_handle,"gsapi_revision"));
   UnlockSemaphoreInfo(ghost_semaphore);
   if ((ghost_info.delete_instance == NULL) || (ghost_info.exit == NULL) ||
-      (ghost_info.init_with_args == NULL) || (ghost_info.new_instance == NULL)
-      || (ghost_info.run_string == NULL) || (ghost_info.set_stdio == NULL) ||
-      (ghost_info.revision == NULL))
+      (ghost_info.init_with_args == NULL) ||
+      (ghost_info.new_instance == NULL) || (ghost_info.run_string == NULL) ||
+      (ghost_info.set_stdio == NULL) || (ghost_info.revision == NULL))
     return(FALSE);
   return(TRUE);
 }
index e580bad8875aabfd604b5607d6da7d0fa24f5ce0..d75c4d0c45c6e753862b3ddaffc97d15f1c21a97 100644 (file)
@@ -347,7 +347,7 @@ static Image *ReadPCXImage(const ImageInfo *image_info,ExceptionInfo *exception)
     image->resolution.y=(double) pcx_info.vertical_resolution;
     image->colors=16;
     count=ReadBlob(image,3*image->colors,pcx_colormap);
-    if (count != (3*image->colors))
+    if (count != (ssize_t) (3*image->colors))
       ThrowReaderException(CorruptImageError,"ImproperImageHeader");
     pcx_info.reserved=(unsigned char) ReadBlobByte(image);
     pcx_info.planes=(unsigned char) ReadBlobByte(image);
index 65329b3c99a6eeb71064b9d8441b1db32a6fef0c..578543c767c1179df3d580ce4f76d31f3358044b 100644 (file)
@@ -235,8 +235,8 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
     revision.revision=0;
   if (verbose != MagickFalse)
     {
-      (void) fprintf(stdout,"[ghostscript library %.2f]",
-        (double)revision.revision / 100);
+      (void) fprintf(stdout,"[ghostscript library %.2f]",(double)
+        revision.revision/100.0);
       SetArgsStart(command,args_start);
       (void) fputs(args_start,stdout);
     }
index 3faccb52b2800b31a01a1426b7d884cc83fe30d8..c7559cf82d480080f9dcd4c8d462478c88f81125 100644 (file)
@@ -225,8 +225,8 @@ static MagickBooleanType InvokePostscriptDelegate(
     revision.revision=0;
   if (verbose != MagickFalse)
     {
-      (void) fprintf(stdout,"[ghostscript library %.2f]",
-        (double)revision.revision / 100);
+      (void) fprintf(stdout,"[ghostscript library %.2f]",(double)
+        revision.revision/100.0);
       SetArgsStart(command,args_start);
       (void) fputs(args_start,stdout);
     }