Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libm Swap around the two last args to the check fo...



details:   https://anonhg.NetBSD.org/src/rev/e038ffda8df7
branches:  trunk
changeset: 355301:e038ffda8df7
user:      he <he%NetBSD.org@localhost>
date:      Mon Jul 24 18:13:36 2017 +0000

description:
Swap around the two last args to the check for expected fegetround(),
so the error message makes sense.

diffstat:

 tests/lib/libm/t_fe_round.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b8ebecea4d14 -r e038ffda8df7 tests/lib/libm/t_fe_round.c
--- a/tests/lib/libm/t_fe_round.c       Mon Jul 24 14:17:11 2017 +0000
+++ b/tests/lib/libm/t_fe_round.c       Mon Jul 24 18:13:36 2017 +0000
@@ -89,7 +89,7 @@
                    (fegetround() == values[i].round_mode),
                    "Didn't get the same rounding mode out!\n"
                    "(index %d) fed in %d rounding mode, got %d out\n",
-                   i, fegetround(), values[i].round_mode);
+                   i, values[i].round_mode, fegetround());
        }
 }
 



Home | Main Index | Thread Index | Old Index