]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 17 Jun 2014 00:25:27 +0000 (00:25 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 17 Jun 2014 00:25:27 +0000 (00:25 +0000)
coders/fits.c

index 519f0084f57b2fabd5a71ba97bb4d18ca8c5173c..b38f9459bf7d3d335e6229079c21f6859761333a 100644 (file)
@@ -667,8 +667,8 @@ static MagickBooleanType WriteFITSImage(const ImageInfo *image_info,
   (void) strncpy(fits_info+offset,header,strlen(header));
   offset+=80;
   (void) FormatLocaleString(header,FITSBlocksize,"BITPIX  =           %10ld",
-    (long) (quantum_info->format == FloatingPointQuantumFormat ? -1 : 1)*
-    image->depth);
+    (long) ((quantum_info->format == FloatingPointQuantumFormat ? -1 : 1)*
+    image->depth));
   (void) strncpy(fits_info+offset,header,strlen(header));
   offset+=80;
   (void) FormatLocaleString(header,FITSBlocksize,"NAXIS   =           %10lu",