diff options
| author | Shinichiro Hamaji <shinichiro.hamaji _at_ gmail.com> | 2008-12-01 02:10:06 +0900 |
|---|---|---|
| committer | grischka <grischka> | 2008-12-02 02:26:07 +0100 |
| commit | ce8d71edbc34d326748ee6f532b80a6574191c3c (patch) | |
| tree | 610c52726f412d1a792ff24fdbd3f5938dd1b492 | |
| parent | 2355fc7686057f4ce53a0ed84629d7b5a18696a7 (diff) | |
| download | tinycc-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.
| -rw-r--r-- | libtcc1.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |
