X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Flrintl.c;h=653b4b4496c32a78380134698ea9c0491bc56f0a;hb=2c671f66e28ac079ae1148f5135c9a52129cc807;hp=bdb5d2085182113cd3ed05318ddfa268ba79fce4;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/lrintl.c b/src/math/lrintl.c index bdb5d20..653b4b4 100644 --- a/src/math/lrintl.c +++ b/src/math/lrintl.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 lrintl(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++;