projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c19b38e
)
(print_numbers): Use 'double' for loop index, not
author
Jim Meyering
<jim@meyering.net>
Tue, 3 Feb 2004 18:40:25 +0000
(18:40 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/seq.c
b/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++)
{