summaryrefslogtreecommitdiff
path: root/libmath/dtoa.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2012-03-05 20:15:16 +0000
committerforsyth <forsyth@vitanuova.com>2012-03-05 20:15:16 +0000
commit52bcd6aebb603598ff088ba7c87769dada447d82 (patch)
treef3718a1489da42e3ba997375c88526f75e887251 /libmath/dtoa.c
parent68c71d4caea0ad74b14fc837a1b3b595fcfdc1d7 (diff)
20120305-2015
Diffstat (limited to 'libmath/dtoa.c')
-rw-r--r--libmath/dtoa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmath/dtoa.c b/libmath/dtoa.c
index 95cf2738..a4a8509f 100644
--- a/libmath/dtoa.c
+++ b/libmath/dtoa.c
@@ -27,12 +27,12 @@
#define Sign_Extend(a,b) if (b < 0) a |= 0xffff0000;
#ifdef USE_FPdbleword
-#define word0(x) ((unsigned long *)&x)->hi
-#define word1(x) ((unsigned long *)&x)->lo
+#define word0(x) ((FPdbleword*)&x)->hi
+#define word1(x) ((FPdbleword*)&x)->lo
#else
#ifdef __LITTLE_ENDIAN
-#define word0(x) ((FPdbleword*)&x)[1]
-#define word1(x) ((FPdbleword*)&x)[0]
+#define word0(x) ((unsigned long *)&x)[1]
+#define word1(x) ((unsigned long *)&x)[0]
#else
#define word0(x) ((unsigned long *)&x)[0]
#define word1(x) ((unsigned long *)&x)[1]