X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flroundl.c;h=42b8479871fc2df03702244daaef8fe9d17b7084;hb=d19c6ff9a927df8a6c6c69881bc1a93962252570;hp=baa12e3bad46c1a4920c1d92ff3d28ec70f3d67e;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/lroundl.c b/src/math/lroundl.c index baa12e3..42b8479 100644 --- a/src/math/lroundl.c +++ b/src/math/lroundl.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct l_i t[] = { #if LDBL_MANT_DIG == 53 @@ -37,7 +37,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 lroundl(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++;