From 01cdeca0c96838a92d9f810f9c4ae59e8129db2a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 31 Jan 1996 10:00:24 +0000 Subject: Tue Jan 30 13:32:05 1996 Roland McGrath * dirent/scandir.c: Allocate dirents with correct size for name, and copy with correct size. * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook. * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier flag bits. (__vfscanf): Fix checking of extra type modifiers. * time/asia, time/australasia, time/backward: Updated from ADO 96b. Tue Jan 30 12:17:26 1996 Ulrich Drepper * stdlib/strtod.c: Only negate exponent when there really is one. * stdio-common/vfscanf.c: Accept type modifiers on %n. Fix FP number parsing. --- stdlib/strtod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'stdlib') diff --git a/stdlib/strtod.c b/stdlib/strtod.c index 4104a98f0e..1a2d1aaf38 100644 --- a/stdlib/strtod.c +++ b/stdlib/strtod.c @@ -1,5 +1,5 @@ /* Read decimal floating point numbers. -Copyright (C) 1995 Free Software Foundation, Inc. +Copyright (C) 1995, 1996 Free Software Foundation, Inc. Contributed by Ulrich Drepper. This file is part of the GNU C Library. @@ -545,12 +545,12 @@ INTERNAL (STRTOF) (nptr, endptr, group) c = *++cp; } while (isdigit (c)); + + if (exp_negative) + exponent = -exponent; } else cp = expp; - - if (exp_negative) - exponent = -exponent; } /* We don't want to have to work with trailing zeroes after the radix. */ -- cgit 1.4.1