From 3021e36d989d96ddb46e4f98da3dc91eddcf725d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 11 Oct 2002 10:55:33 +0000 Subject: * stdio-common/tst-sscanf.c (val_double): Append .0 to large whole number literals, so they are doubles instead of ints. --- stdio-common/tst-sscanf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdio-common') diff --git a/stdio-common/tst-sscanf.c b/stdio-common/tst-sscanf.c index 778b4ecf8a..3ec5a28410 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 , 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 }; -- cgit 1.4.1