History

fix abitest.c for x86_64 bug

jiang committed 12 years ago

Commit 89f7aea1 parent deaee6c2 files · +1 −3Browse files

Unified · Split

2 files
  1. tests/abitest.c +0 −2
  2. x86_64-gen.c +1 −1
tests/abitest.c+0−2
@@ -138,8 +138,6 @@ static int ret_longdouble_test_callback2(void *ptr) { · 137 unmodified lines
138138 ret_longdouble_test_type a = {10};
139139 ret_longdouble_test_type r;
140140 r = f(a);
141− printf("%Lf \n", a.x);
142− printf("%Lf \n", r.x);
143141 return ((r.x == a.x*5) && (f(a).x == a.x*5)) ? 0 : -1;
144142 }
145143
x86_64-gen.c+1−1
@@ -981,7 +981,7 @@ static X86_64_Mode classify_x86_64_inner(CType *ty) · 980 unmodified lines
981981 return x86_64_mode_memory;
982982
983983 mode = x86_64_mode_none;
984− for (; f; f = f->next)
984+ for (f = f->next; f; f = f->next)
985985 mode = classify_x86_64_merge(mode, classify_x86_64_inner(&f->type));
986986
987987 return mode;

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