Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Dec 2015 04:42:55 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292495 - head/tools/regression/lib/msun
Message-ID:  <201512200442.tBK4gtEq086415@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sun Dec 20 04:42:55 2015
New Revision: 292495
URL: https://svnweb.freebsd.org/changeset/base/292495

Log:
  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

Modified:
  head/tools/regression/lib/msun/test-fma.c

Modified: head/tools/regression/lib/msun/test-fma.c
==============================================================================
--- head/tools/regression/lib/msun/test-fma.c	Sun Dec 20 04:41:17 2015	(r292494)
+++ head/tools/regression/lib/msun/test-fma.c	Sun Dec 20 04:42:55 2015	(r292495)
@@ -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++) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512200442.tBK4gtEq086415>