diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-20 04:42:55 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-20 04:42:55 +0000 |
commit | 4aecd6d888d21b4638abb5b48b1cb4d3b64b99fe (patch) | |
tree | 0e27592a946afe8809e7e241df16fb2711e3d3af /tools | |
parent | 848cebcb1579e1ca1ee9cfee3f731993cd4d6def (diff) | |
download | FreeBSD-src-4aecd6d888d21b4638abb5b48b1cb4d3b64b99fe.zip FreeBSD-src-4aecd6d888d21b4638abb5b48b1cb4d3b64b99fe.tar.gz |
Initialize j so it doesn't print out a garbage index
Use it consistently instead of i in the first loop
MFC after: 3 days
X-MFC with: 292492
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/lib/msun/test-fma.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/regression/lib/msun/test-fma.c b/tools/regression/lib/msun/test-fma.c index 09453eb..af7910e 100644 --- a/tools/regression/lib/msun/test-fma.c +++ b/tools/regression/lib/msun/test-fma.c @@ -482,13 +482,15 @@ main(int argc, char *argv[]) exit(0); #endif + j = 1; + printf("1..19\n"); for (i = 0; i < nitems(rmodes); i++, j++) { printf("rmode = %d\n", rmodes[i]); fesetround(rmodes[i]); test_zeroes(); - printf("ok %d - fma zeroes\n", i + 1); + printf("ok %d - fma zeroes\n", j); } for (i = 0; i < nitems(rmodes); i++, j++) { |