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
89 double d;89 double d;
90#if 190#if 1
91 struct {91 struct {
92 unsigned long lower;92 unsigned int lower;
93 long upper;93 int upper;
94 } l;94 } l;
95#else95#else
96 struct {96 struct {
97 long upper;97 int upper;
98 unsigned long lower;98 unsigned int lower;
99 } l;99 } l;
100#endif100#endif
101 long long ll;101 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