X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fmath%2Flround.c;h=92835b18717293610a9602aebf0eb3d21f9b641a;hp=f1ac4914538f1f7e535f6798a3e5e8d4fa9390b7;hb=b55b931794bff9e88a3443daa8404c74f7f1d17c;hpb=5fc943786cdd4e93efe31f9f742f2097cec9f8a1 diff --git a/src/math/lround.c b/src/math/lround.c index f1ac491..92835b1 100644 --- a/src/math/lround.c +++ b/src/math/lround.c @@ -25,7 +25,7 @@ int main(void) yi = lround(p->x); e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); - if (!checkexcept(e, p->e, p->r)) { + if (!checkexcept(e, p->e, p->r) && (e|INEXACT) != p->e) { printf("%s:%d: bad fp exception: %s lround(%a)=%lld, want %s", p->file, p->line, rstr(p->r), p->x, p->i, estr(p->e)); printf(" got %s\n", estr(e));