don't set errno for libcnt

svn path=/trunk/; revision=43521
This commit is contained in:
Christoph von Wittich 2009-10-16 21:29:27 +00:00
parent 59ee8d397a
commit 821924adcb
2 changed files with 4 additions and 0 deletions

View file

@ -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;

View file

@ -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;