aboutsummaryrefslogtreecommitdiff
blob: f9d09a1cfc2e775f478e209b1d8a1777bf267633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff -Nur astrometry.net-0.38.orig/qfits-an/src/qfits_image.c astrometry.net-0.38/qfits-an/src/qfits_image.c
--- astrometry.net-0.38.orig/qfits-an/src/qfits_image.c	2009-11-30 15:13:05.000000000 +0000
+++ astrometry.net-0.38/qfits-an/src/qfits_image.c	2012-05-09 22:51:13.000000000 +0100
@@ -1100,7 +1100,7 @@
 #ifndef WORDS_BIGENDIAN
             qfits_swap_bytes(XLpix, 8);
 #endif
-            dpix = *((double*)XLpix);
+            dpix = (double)(*XLpix);
             *p_dest ++ = (float)(bscale * dpix + bzero);
         }
         break;
@@ -1200,7 +1200,7 @@
 #ifndef WORDS_BIGENDIAN
             qfits_swap_bytes(XLpix, 8);
 #endif
-            dpix = *((double*)XLpix);
+            dpix = (double)(*XLpix);
             *p_dest ++ = (int)(bscale * dpix + bzero);
         }
         break;
@@ -1301,7 +1301,7 @@
 #ifndef WORDS_BIGENDIAN
             qfits_swap_bytes(XLpix, 8);
 #endif
-            dpix = *((double*)XLpix);
+            dpix = (double)(*XLpix);
             *p_dest ++ = (double)(bscale * dpix + bzero);
         }
         break;