X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=inline;f=src%2Fmath%2Flrintf.c;h=06fc366b6da6d6bad9ce0e4853a13a218b76e9d9;hb=5625f7d633fa22dd50b94b086abaa0dbcc0e6208;hp=7e9a0f45391d71b2f2378e3268487292bd4a898f;hpb=125fb69ba64c0064de25eb1a23217b00aa393051;p=libc-test diff --git a/src/math/lrintf.c b/src/math/lrintf.c index 7e9a0f4..06fc366 100644 --- a/src/math/lrintf.c +++ b/src/math/lrintf.c @@ -4,6 +4,7 @@ static struct f_i t[] = { #include "sanity/lrintf.h" +#include "special/lrintf.h" }; @@ -30,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++;