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