From 0d73b701b3c4bb8a200a35eed056ef6eef311713 Mon Sep 17 00:00:00 2001 From: Sergey Dmitrouk Date: Wed, 10 Sep 2014 14:33:42 +0300 Subject: [PATCH] Fix order of jn() arguments in error message They are swapped. --- src/math/jn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/math/jn.c b/src/math/jn.c index 7573edc..e02db5e 100644 --- a/src/math/jn.c +++ b/src/math/jn.c @@ -28,15 +28,15 @@ int main(void) e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); if (!checkexcept(e, p->e, p->r)) { - printf("%s:%d: bad fp exception: %s jn(%a, %lld)=%a, want %s", - p->file, p->line, rstr(p->r), p->x, p->i, p->y, estr(p->e)); + printf("%s:%d: bad fp exception: %s jn(%lld, %a)=%a, want %s", + p->file, p->line, rstr(p->r), p->i, p->x, p->y, estr(p->e)); printf(" got %s\n", estr(e)); err++; } d = ulperr(y, p->y, p->dy); if (!checkulp(d, p->r)) { - printf("%s:%d: %s jn(%a, %lld) want %a got %a, ulperr %.3f = %a + %a\n", - p->file, p->line, rstr(p->r), p->x, p->i, p->y, y, d, d-p->dy, p->dy); + printf("%s:%d: %s jn(%lld, %a) want %a got %a, ulperr %.3f = %a + %a\n", + p->file, p->line, rstr(p->r), p->i, p->x, p->y, y, d, d-p->dy, p->dy); err++; } } -- 2.11.4.GIT