Skip to content

Commit 2fff731

Browse files
committed
stdio: Legacy stdio only handles 80-bit long double
Skip all other forms for long double as the code doesn't handle them correctly, not even 64-bit long double. Signed-off-by: Keith Packard <[email protected]>
1 parent 9e35465 commit 2fff731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

newlib/libc/stdio/vfscanf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Supporting OS subroutines required:
130130
This could be changed in the future should the __ldtoa code be
131131
preferred over __dtoa. */
132132
#define _NO_LONGDBL
133-
#if defined _WANT_IO_LONG_DOUBLE && (LDBL_MANT_DIG > DBL_MANT_DIG)
133+
#if defined _WANT_IO_LONG_DOUBLE && (LDBL_MANT_DIG == 64)
134134
#undef _NO_LONGDBL
135135
#endif
136136

0 commit comments

Comments
 (0)