Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion newlib/libc/tinystdio/conv_flt.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ conv_flt (FLT_STREAM *stream, int *lenp, width_t width, void *addr, uint16_t fla
#endif
exp += expacc;
}

#ifdef _NEED_IO_C99_FORMATS
else if (flags & FL_FHEX)
exp *= 4;
#endif
no_exp:
if (width)
scanf_ungetc (i, stream, lenp);
Expand Down
1 change: 1 addition & 0 deletions test/test-strtod.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ static const struct {
{ "1e2@", 100.0, 100.0f, 100.0l },
#ifdef FULL_TESTS
{ "0x1p-1@", 0.5, 0.5f, 0.5l },
{ "0x10.000@", 16.0, 16.0f, 16.0l},
{ "0x1p-10000000000000000000000000@", 0.0, 0.0f, 0.0l },
{ "0x1p0@", 1.0, 1.0f, 1.0l },
{ "0x10p0@", 16.0, 16.0f, 16.0l },
Expand Down