X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdlib%2Fstrtoll.c;fp=functions%2Fstdlib%2Fstrtoll.c;h=768da391ef3f75f08bc71d946f236325ec7e2875;hp=80a8d176f524e2d06efa96a13c86205bd00d05dc;hb=13ee02fa27a739d9d602f801126eadcfbfeab8a8;hpb=97e30a162595b6a709600f1f1d7d9ebf21f469d1 diff --git a/functions/stdlib/strtoll.c b/functions/stdlib/strtoll.c index 80a8d17..768da39 100644 --- a/functions/stdlib/strtoll.c +++ b/functions/stdlib/strtoll.c @@ -26,6 +26,7 @@ long long int strtoll( const char * s, char ** endptr, int base ) else { /* FIXME: This breaks on some machines that round negatives wrongly */ + /* FIXME: Sign error not caught by testdriver */ rc = _PDCLIB_strtox_main( &p, (unsigned)base, (uintmax_t)LLONG_MIN, (uintmax_t)( LLONG_MIN / -base ), (uintmax_t)( -( LLONG_MIN % base ) ), &sign ); } if ( endptr != NULL ) *endptr = ( p != NULL ) ? (char *) p : (char *) s;