diff options
Diffstat (limited to 'newlib/libc/stdlib/wcstoull.c')
-rw-r--r-- | newlib/libc/stdlib/wcstoull.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdlib/wcstoull.c b/newlib/libc/stdlib/wcstoull.c index 5ac3257..09422fa 100644 --- a/newlib/libc/stdlib/wcstoull.c +++ b/newlib/libc/stdlib/wcstoull.c @@ -150,7 +150,7 @@ _wcstoull_l (struct _reent *rptr, const wchar_t *nptr, wchar_t **endptr, register int neg = 0, any, cutlim; if(base < 0 || base == 1 || base > 36) { - rptr->_errno = EINVAL; + _REENT_ERRNO(rptr) = EINVAL; return(0ULL); } /* @@ -195,7 +195,7 @@ _wcstoull_l (struct _reent *rptr, const wchar_t *nptr, wchar_t **endptr, } if (any < 0) { acc = ULLONG_MAX; - rptr->_errno = ERANGE; + _REENT_ERRNO(rptr) = ERANGE; } else if (neg) acc = -acc; if (endptr != 0) |