fix abitest.c for x86_64 bug

master
jiang 2014-04-28 14:05:55 +08:00
parent deaee6c249
commit 89f7aea980
2 changed files with 1 additions and 3 deletions

View File

@ -138,8 +138,6 @@ static int ret_longdouble_test_callback2(void *ptr) {
ret_longdouble_test_type a = {10};
ret_longdouble_test_type r;
r = f(a);
printf("%Lf \n", a.x);
printf("%Lf \n", r.x);
return ((r.x == a.x*5) && (f(a).x == a.x*5)) ? 0 : -1;
}

View File

@ -981,7 +981,7 @@ static X86_64_Mode classify_x86_64_inner(CType *ty)
return x86_64_mode_memory;
mode = x86_64_mode_none;
for (; f; f = f->next)
for (f = f->next; f; f = f->next)
mode = classify_x86_64_merge(mode, classify_x86_64_inner(&f->type));
return mode;