From: Ulrich Drepper Date: Fri, 27 Apr 2007 19:28:32 +0000 (+0000) Subject: (_IO_vfscanf_internal): Allow hexa-decimal floats without exponent. X-Git-Tag: cvs/fedora-glibc-20070504T0917~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd9be6797769ae747e28bda38fd36ca8643c4298;p=thirdparty%2Fglibc.git (_IO_vfscanf_internal): Allow hexa-decimal floats without exponent. --- diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c index 0daf4ae0dd1..b1469b9a9e1 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: