]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/strtol.c
Extended test drivers to cover sign error.
[pdclib] / functions / stdlib / strtol.c
index ff5aa8b0cb791609f0bbe526248fd54d135b0825..085abbb612c074fcfcdf3595a29a216914718a9a 100644 (file)
@@ -84,9 +84,9 @@ int main( void )
     endptr = NULL;
     TESTCASE( strtol( overflow, &endptr, 0 ) == 0 );
     TESTCASE( endptr == overflow );
-    /* These tests assume two-complement, but conversion should work for   */
-    /* one-complement and signed magnitude just as well. Anyone having a   */
-    /* platform to test this on?                                           */
+    /* TODO: These tests assume two-complement, but conversion should work */
+    /* for one-complement and signed magnitude just as well. Anyone having */
+    /* a platform to test this on?                                         */
     errno = 0;
 #if LONG_MAX == 0x7fffffffL
     /* testing "even" overflow, i.e. base is power of two */