From ce8d71edbc34d326748ee6f532b80a6574191c3c Mon Sep 17 00:00:00 2001 From: Shinichiro Hamaji Date: Mon, 1 Dec 2008 02:10:06 +0900 Subject: [PATCH] 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. --- libtcc1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libtcc1.c b/libtcc1.c index 892babad..96bf22cf 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; -- 2.11.4.GIT