1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- The ERANGE initialization is not necessary.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15031 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-09-28 09:51:16 +00:00
parent 3099f6210a
commit f84fbc32cb
9 changed files with 10 additions and 33 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_strtol.c,v 1.4 2005-09-28 09:28:39 obarthel Exp $
* $Id: stdlib_strtol.c,v 1.5 2005-09-28 09:51:16 obarthel Exp $
*
* :ts=4
*
@ -181,10 +181,7 @@ strtol(const char *str, char **ptr, int base)
/* Did we convert anything? */
if(num_digits_converted == 0)
{
__set_errno(ERANGE);
goto out;
}
if(is_negative)
result = (-sum);