aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/wcstoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/wcstoll.c')
-rw-r--r--newlib/libc/stdlib/wcstoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/wcstoll.c b/newlib/libc/stdlib/wcstoll.c
index c0e5dc7..34a7e37 100644
--- a/newlib/libc/stdlib/wcstoll.c
+++ b/newlib/libc/stdlib/wcstoll.c
@@ -200,7 +200,7 @@ _wcstoll_l (struct _reent *rptr, const wchar_t *nptr, wchar_t **endptr,
}
if (any < 0) {
acc = neg ? LONG_LONG_MIN : LONG_LONG_MAX;
- rptr->_errno = ERANGE;
+ _REENT_ERRNO(rptr) = ERANGE;
} else if (neg)
acc = -acc;
if (endptr != 0)