[gimp] plug-ins: silence gcc by turning huge int constants into floats, shiver



commit adf8a6efc0ff6ad791de60237aef7bf2ac7c7ee3
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jul 1 00:17:15 2014 +0200

    plug-ins: silence gcc by turning huge int constants into floats, shiver

 plug-ins/file-fits/fits.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/file-fits/fits.c b/plug-ins/file-fits/fits.c
index 6361aa6..e53e92d 100644
--- a/plug-ins/file-fits/fits.c
+++ b/plug-ins/file-fits/fits.c
@@ -863,7 +863,7 @@ create_fits_header (FitsFile *ofp,
       hdulist->datamax = 65535;
       break;
     case 32:
-      hdulist->datamax = 4294967295;
+      hdulist->datamax = 4294967295.0; /* .0 to slinence gcc */
       break;
     case -32:
       hdulist->datamax = 1.0;
@@ -1055,7 +1055,7 @@ save_fits (FitsFile *ofp,
               case 32:
                 for (j = 0; j < width; j++)
                   {
-                    *((guint32*)src) += 2147483648;
+                    *((guint32*)src) += 2147483648.0; /* .0 to silence gcc */
                     putc (*(src + 3), ofp->fp);
                     putc (*(src + 2), ofp->fp);
                     putc (*(src + 1), ofp->fp);


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