summaryrefslogtreecommitdiff
path: root/lib/libc/arch/vax/gdtoa/strtof.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/vax/gdtoa/strtof.c')
-rw-r--r--lib/libc/arch/vax/gdtoa/strtof.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/arch/vax/gdtoa/strtof.c b/lib/libc/arch/vax/gdtoa/strtof.c
index 7ae20c2f894..11105f0effd 100644
--- a/lib/libc/arch/vax/gdtoa/strtof.c
+++ b/lib/libc/arch/vax/gdtoa/strtof.c
@@ -65,6 +65,10 @@ strtof(CONST char *s, char **sp)
case STRTOG_Infinite:
u.L[0] = 0xffff7fff;
break;
+
+ case STRTOG_NoMemory:
+ errno = ERANGE;
+ return (HUGE_VALF);
}
if (k & STRTOG_Neg)
u.L[0] |= 0x00008000L;