diff options
Diffstat (limited to 'newlib/libc/stdlib/wcstoimax.c')
-rw-r--r-- | newlib/libc/stdlib/wcstoimax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdlib/wcstoimax.c b/newlib/libc/stdlib/wcstoimax.c index 02ab1c1..0c939c9 100644 --- a/newlib/libc/stdlib/wcstoimax.c +++ b/newlib/libc/stdlib/wcstoimax.c @@ -122,10 +122,10 @@ _wcstoimax_l(struct _reent *rptr, const wchar_t * __restrict nptr, } if (any < 0) { acc = neg ? INTMAX_MIN : INTMAX_MAX; - rptr->_errno = ERANGE; + _REENT_ERRNO(rptr) = ERANGE; } else if (!any) { noconv: - rptr->_errno = EINVAL; + _REENT_ERRNO(rptr) = EINVAL; } else if (neg) acc = -acc; if (endptr != NULL) |