(_IO_vfscanf_internal): Allow hexa-decimal floats without exponent.
This commit is contained in:
parent
c536b9b83b
commit
bd9be67977
@ -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
|
/* Have we read any character? If we try to read a number
|
||||||
in hexadecimal notation and we have read only the `0x'
|
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
|
if (__builtin_expect (wpsize == 0
|
||||||
|| ((flags & HEXA_FLOAT)
|
|| ((flags & HEXA_FLOAT) && wpsize == 2), 0))
|
||||||
&& (wpsize == 2 || ! got_e)), 0))
|
|
||||||
conv_error ();
|
conv_error ();
|
||||||
|
|
||||||
scan_float:
|
scan_float:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user