X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdlib%2Fstrtoll.c;h=768da391ef3f75f08bc71d946f236325ec7e2875;hb=f603f88b4456cf9b7ab1328bf657ede22a0c9940;hp=80a8d176f524e2d06efa96a13c86205bd00d05dc;hpb=b08f4b52b1cd1f7a9553c0f357a7c90859fa3e73;p=pdclib 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;