(print_numbers): Use 'double' for loop index, not

'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.
This commit is contained in:
Jim Meyering committed 2004-02-03 18:40:25 +00:00
1 parent c19b38ed34
commit e8416c5e12
1 file changed
+1 -1
+1 -1
View File
@@ -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++)
{