aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/math/w_log10.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/math/w_log10.c')
-rw-r--r--newlib/libm/math/w_log10.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libm/math/w_log10.c b/newlib/libm/math/w_log10.c
index f427b86..7c39669 100644
--- a/newlib/libm/math/w_log10.c
+++ b/newlib/libm/math/w_log10.c
@@ -103,6 +103,7 @@ PORTABILITY
else if (!matherr(&exc)) {
errno = EDOM;
}
+ exc.retval = nan("");
}
if (exc.err != 0)
errno = exc.err;