diff tools/gentab.c @ 2248:2e656da1b10b

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Jun 2019 20:20:47 +0300
parents e3f0eaf23f4f
children b7cd5dd0b82e
line wrap: on
line diff
--- a/tools/gentab.c	Sat Jun 15 20:19:21 2019 +0300
+++ b/tools/gentab.c	Sat Jun 15 20:20:47 2019 +0300
@@ -249,7 +249,7 @@
 
         fprintf(outFile, "%ld%s",
             lrint(value),
-            (n < optPerLine - 1) ? "," : "");
+            (n + 1 < optPerLine) ? "," : "");
 
         if (++n >= optPerLine)
         {