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

This commit is contained in:
Michael Natterer 2014-07-01 00:17:15 +02:00
parent f2b265f751
commit adf8a6efc0
1 changed files with 2 additions and 2 deletions

View File

@ -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);