mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
don't set errno for libcnt
svn path=/trunk/; revision=43521
This commit is contained in:
@@ -79,7 +79,9 @@ strtol(const char *nptr, char **endptr, int base)
|
||||
if (any < 0)
|
||||
{
|
||||
acc = neg ? LONG_MIN : LONG_MAX;
|
||||
#ifndef _LIBCNT_
|
||||
__set_errno(ERANGE);
|
||||
#endif
|
||||
}
|
||||
else if (neg)
|
||||
acc = -acc;
|
||||
|
||||
@@ -63,7 +63,9 @@ strtoul(const char *nptr, char **endptr, int base)
|
||||
if (any < 0)
|
||||
{
|
||||
acc = ULONG_MAX;
|
||||
#ifndef _LIBCNT_
|
||||
__set_errno(ERANGE);
|
||||
#endif
|
||||
}
|
||||
else if (neg)
|
||||
acc = -acc;
|
||||
|
||||
Reference in New Issue
Block a user