summaryrefslogtreecommitdiffstats
path: root/newlib/libm/math/w_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/math/w_log.c')
-rw-r--r--newlib/libm/math/w_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/math/w_log.c b/newlib/libm/math/w_log.c
index e23efd7e6..38896cd25 100644
--- a/newlib/libm/math/w_log.c
+++ b/newlib/libm/math/w_log.c
@@ -95,7 +95,7 @@ PORTABILITY
if (_LIB_VERSION == _POSIX_)
errno = ERANGE;
else if (!matherr(&exc)) {
- errno = EDOM;
+ errno = ERANGE;
}
} else {
/* log(x<0) */