History

fix a gcc compiler warning for the previous commit mark a constant as long long (or -std=gnu99 is needed)

seyko committed 11 years ago

Commit 8dbe1291 parent c2efd7c1 file · +1 −1Browse files

Unified · Split

tccelf.c+1−1
@@ -927,7 +927,7 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s) · 926 unmodified lines
927 {927 {
928 long long diff;928 long long diff;
929 diff = (long long)val - addr;929 diff = (long long)val - addr;
930 if (diff < -2147483648 || diff > 2147483647) {930 if (diff < -2147483648LL || diff > 2147483647LL) {
931 tcc_error("internal error: relocation failed");931 tcc_error("internal error: relocation failed");
932 }932 }
933 *(int *)ptr += diff;933 *(int *)ptr += diff;

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