math: fix float->int functions
[libc-test] / src / math / gen / template / f_i.c
index e5f0302..0064623 100644 (file)
@@ -9,8 +9,7 @@ HEADERS
 int main(void)
 {
        #pragma STDC FENV_ACCESS ON
-       int yi;
-       float d;
+       long long yi;
        int e, i, err = 0;
        struct f_i *p;
 
@@ -31,7 +30,7 @@ int main(void)
                        err++;
                }
                if (yi != p->i) {
-                       printf("%s:%d: %s ___(%a) want %lld got %d\n",
+                       printf("%s:%d: %s ___(%a) want %lld got %lld\n",
                                p->file, p->line, rstr(p->r), p->x, p->i, yi);
                        err++;
                }