History

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.

Shinichiro Hamaji committed 17 years ago

Commit ce8d71e1 parent 2355fc71 file · +4 −4Browse files

Unified · Split

libtcc1.c+4−4
@@ -89,13 +89,13 @@ union double_long { · 88 unmodified lines
8989 double d;
9090 #if 1
9191 struct {
92− unsigned long lower;
93− long upper;
92+ unsigned int lower;
93+ int upper;
9494 } l;
9595 #else
9696 struct {
97− long upper;
98− unsigned long lower;
97+ int upper;
98+ unsigned int lower;
9999 } l;
100100 #endif
101101 long long ll;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t