aboutsummaryrefslogtreecommitdiff
path: root/libtcc1.c
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji _at_ gmail.com>2008-12-01 02:10:06 +0900
committergrischka <grischka>2008-12-02 02:26:07 +0100
commitce8d71edbc34d326748ee6f532b80a6574191c3c (patch)
tree610c52726f412d1a792ff24fdbd3f5938dd1b492 /libtcc1.c
parent2355fc7686057f4ce53a0ed84629d7b5a18696a7 (diff)
downloadtinycc-ce8d71edbc34d326748ee6f532b80a6574191c3c.tar.gz
tinycc-ce8d71edbc34d326748ee6f532b80a6574191c3c.tar.bz2
Use int*2 instead of long*2 to hold double value.
I believe sizeof(double) is sizeof(int)*2 in most environments. On the other hand, sizeof(long) is equal to sizeof(double) in x86-64.
Diffstat (limited to 'libtcc1.c')
-rw-r--r--libtcc1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libtcc1.c b/libtcc1.c
index 892baba..96bf22c 100644
--- a/libtcc1.c
+++ b/libtcc1.c
@@ -89,13 +89,13 @@ union double_long {
double d;
#if 1
struct {
- unsigned long lower;
- long upper;
+ unsigned int lower;
+ int upper;
} l;
#else
struct {
- long upper;
- unsigned long lower;
+ int upper;
+ unsigned int lower;
} l;
#endif
long long ll;