From bd9be6797769ae747e28bda38fd36ca8643c4298 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 27 Apr 2007 19:28:32 +0000 Subject: (_IO_vfscanf_internal): Allow hexa-decimal floats without exponent. --- stdio-common/vfscanf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'stdio-common') diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c index 0daf4ae..b1469b9 100644 --- a/stdio-common/vfscanf.c +++ b/stdio-common/vfscanf.c @@ -2028,10 +2028,9 @@ _IO_vfscanf_internal (_IO_FILE *s, const char *format, _IO_va_list argptr, /* Have we read any character? If we try to read a number in hexadecimal notation and we have read only the `0x' - prefix or no exponent this is an error. */ + prefix this is an error. */ if (__builtin_expect (wpsize == 0 - || ((flags & HEXA_FLOAT) - && (wpsize == 2 || ! got_e)), 0)) + || ((flags & HEXA_FLOAT) && wpsize == 2), 0)) conv_error (); scan_float: -- cgit v1.1