[gimp] Bug 780698 - 32-bit integer FITS files won't open



commit 3bb1f09dceff68f80af065468f3cd130f42ca221
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 30 19:41:15 2017 +0200

    Bug 780698 - 32-bit integer FITS files won't open
    
    Make sure integers don't depend on the hardware (don't use "long", use
    "gint32" instead).

 plug-ins/file-fits/fits-io.h |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/plug-ins/file-fits/fits-io.h b/plug-ins/file-fits/fits-io.h
index a9066b5..8732db1 100644
--- a/plug-ins/file-fits/fits-io.h
+++ b/plug-ins/file-fits/fits-io.h
@@ -30,15 +30,15 @@
 
 /* Data representations */
 
-typedef unsigned char FitsBitpix8;
-typedef short         FitsBitpix16;
-typedef long          FitsBitpix32;
-typedef float         FitsBitpixM32;
-typedef double        FitsBitpixM64;
-typedef int           FitsBool;
-typedef long          FitsLong;
-typedef double        FitsDouble;
-typedef char          FitsString[FITS_CARD_SIZE];
+typedef guchar FitsBitpix8;
+typedef gint16 FitsBitpix16;
+typedef gint32 FitsBitpix32;
+typedef float  FitsBitpixM32;
+typedef double FitsBitpixM64;
+typedef gint32 FitsBool;
+typedef gint32 FitsLong;
+typedef double FitsDouble;
+typedef char   FitsString[FITS_CARD_SIZE];
 
 typedef enum
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]