summaryrefslogtreecommitdiff
path: root/lib/libc/gdtoa/strtord.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gdtoa/strtord.c')
-rw-r--r--lib/libc/gdtoa/strtord.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/gdtoa/strtord.c b/lib/libc/gdtoa/strtord.c
index 709af4c713f..966d26431b4 100644
--- a/lib/libc/gdtoa/strtord.c
+++ b/lib/libc/gdtoa/strtord.c
@@ -55,6 +55,9 @@ ULtod(ULong *L, ULong *bits, Long exp, int k)
L[_0] = (bits[1] & ~0x100000) | ((exp + 0x3ff + 52) << 20);
break;
+ case STRTOG_NoMemory:
+ errno = ERANGE;
+ /* FALLTHROUGH */
case STRTOG_Infinite:
L[_0] = 0x7ff00000;
L[_1] = 0;