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
This commit is contained in:
Enji Cooper 2015-12-20 04:42:55 +00:00
parent 48499d1764
commit 0d1321af60

View File

@ -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++) {