diff options
author | Jim Meyering <jim@meyering.net> | 2004-02-03 18:40:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-02-03 18:40:25 +0000 |
commit | e8416c5e12473f009eeaa25d699a5470bc005f3c (patch) | |
tree | e583326a6b887e713c51ecf702137c8fce26ca29 | |
parent | c19b38ed34440894bf6286198272ef881da6465b (diff) | |
download | coreutils-e8416c5e12473f009eeaa25d699a5470bc005f3c.tar.xz |
(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.
-rw-r--r-- | src/seq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) { |