From e8416c5e12473f009eeaa25d699a5470bc005f3c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 3 Feb 2004 18:40:25 +0000 Subject: [PATCH] (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. --- src/seq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/seq.c b/src/seq.c index 0394c35..93147ca 100644 --- 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++) { -- 2.7.4