History

revert a commit: Work around for the issue TCC doesn't handle -2147483648 properly because a tcc handle now -2147483648 properly. Look a commit: Make integer constant parsing C99 compliant

seyko committed 11 years ago

Commit c2efd7c1 parent bd531ec1 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
927927 {
928928 long long diff;
929929 diff = (long long)val - addr;
930− if (diff <= -2147483647 || diff > 2147483647) {
930+ if (diff < -2147483648 || diff > 2147483647) {
931931 tcc_error("internal error: relocation failed");
932932 }
933933 *(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