diff options
author | Roland McGrath <roland@gnu.org> | 2002-10-11 10:55:33 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-10-11 10:55:33 +0000 |
commit | 3021e36d989d96ddb46e4f98da3dc91eddcf725d (patch) | |
tree | 3059a5ff33b0ba3f6b496d9e756ebedca4c79aba /stdio-common | |
parent | ce460d04a5bd10d7353ca37dfa9d34275449fb3b (diff) | |
download | glibc-3021e36d989d96ddb46e4f98da3dc91eddcf725d.zip glibc-3021e36d989d96ddb46e4f98da3dc91eddcf725d.tar.gz glibc-3021e36d989d96ddb46e4f98da3dc91eddcf725d.tar.bz2 |
* stdio-common/tst-sscanf.c (val_double): Append .0 to large whole
number literals, so they are doubles instead of ints.
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/tst-sscanf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stdio-common/tst-sscanf.c b/stdio-common/tst-sscanf.c index 778b4ec..3ec5a28 100644 --- a/stdio-common/tst-sscanf.c +++ b/stdio-common/tst-sscanf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jakub Jelinek <jakub@redhat.com>, 2000. @@ -33,7 +33,8 @@ const double val_double[] = { -.10000E+02, 0.20000E+02, 0.25000E+01, 0.40000E+01, 0.50000E+01, 0.12500E+01, 0.10000E+02, 0.20000E+02, 0.25000E+01, 0.40000E+01, 0.50000E+01, 0.12500E+01, - -1234567E01, 98765432E09, 12345678901, 98765432109, 12345678901, 98765432109, + -1234567E01, 98765432E09, 12345678901.0, 98765432109.0, 12345678901.0, + 98765432109.0, -0.1000E+02, 0.20000E+02, 0.25000E+01, 0.40000E+01, 0.50000E+01, 0.12500E+01 }; |