(print_numbers): Use 'double' for loop index, not
authorJim Meyering <jim@meyering.net>
Tue, 3 Feb 2004 18:40:25 +0000 (18:40 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 3 Feb 2004 18:40:25 +0000 (18:40 +0000)
'int', to avoid problems with integer overflow.  On almost all
machines 'double' works in every case where 'int' works, and
it works on other cases besides.

src/seq.c

index 0394c35..93147ca 100644 (file)
--- a/src/seq.c
+++ b/src/seq.c
@@ -181,7 +181,7 @@ valid_format (const char *fmt)
 static void
 print_numbers (const char *fmt)
 {
-  int i;
+  double i;
 
   for (i = 0; /* empty */; i++)
     {