X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdlib%2Fstrtol.c;h=367b6789fdd44e75d53f048be3a17b3741951ad2;hp=dce035ea1f9bd8a254b36ce9cde74f4e18bbcb63;hb=598c0675c5229ecfd5a7aa31a9f02c392b9e1e9d;hpb=52170395fe98af533c3b44ffae13c66aeb1cdb99 diff --git a/functions/stdlib/strtol.c b/functions/stdlib/strtol.c index dce035e..367b678 100644 --- a/functions/stdlib/strtol.c +++ b/functions/stdlib/strtol.c @@ -25,7 +25,6 @@ long int strtol( const char * s, char ** endptr, int base ) } else { - /* FIXME: This breaks on some machines that round negatives wrongly */ rc = (long int)_PDCLIB_strtox_main( &p, (unsigned)base, (uintmax_t)LONG_MIN, (uintmax_t)( LONG_MIN / -base ), (int)( -( LONG_MIN % base ) ), &sign ); } if ( endptr != NULL ) *endptr = ( p != NULL ) ? (char *) p : (char *) s;