X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flrintf.c;h=0d489805d10728e5292a84d1cd73bda712b767e4;hb=2bfb414517031063e18dc4a07543e279dc07461d;hp=9e2ac07fdb8120871c23599b99d62800317afbcd;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/lrintf.c b/src/math/lrintf.c index 9e2ac07..0d48980 100644 --- a/src/math/lrintf.c +++ b/src/math/lrintf.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct f_i t[] = { #include "sanity/lrintf.h" @@ -31,7 +31,7 @@ int main(void) printf(" got %s\n", estr(e)); err++; } - if (yi != p->i) { + if (!(p->e&INVALID) && yi != p->i) { printf("%s:%d: %s lrintf(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++;