diff options
Diffstat (limited to 'newlib/libc/stdlib/wcstoul.c')
-rw-r--r-- | newlib/libc/stdlib/wcstoul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/wcstoul.c b/newlib/libc/stdlib/wcstoul.c index fe3c878..9c78fc3 100644 --- a/newlib/libc/stdlib/wcstoul.c +++ b/newlib/libc/stdlib/wcstoul.c @@ -179,7 +179,7 @@ _wcstoul_l (struct _reent *rptr, const wchar_t *nptr, wchar_t **endptr, } if (any < 0) { acc = ULONG_MAX; - rptr->_errno = ERANGE; + _REENT_ERRNO(rptr) = ERANGE; } else if (neg) acc = -acc; if (endptr != 0) |