summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strtol.c2
-rw-r--r--wcstol.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/strtol.c b/strtol.c
index c462cc1..9ccee53 100644
--- a/strtol.c
+++ b/strtol.c
@@ -71,7 +71,7 @@ int test_strtol(void)
TEST(l, strtol(s="0F5F", &c, 16), 0x0f5f, "%ld != %ld");
TEST(l, strtol(s="0xz", &c, 16), 0, "%ld != %ld");
- TEST2(i, c-s, 0, "wrong final position %ld != %ld");
+ TEST2(i, c-s, 1, "wrong final position %ld != %ld");
TEST(l, strtol(s="0x1234", &c, 16), 0x1234, "%ld != %ld");
TEST2(i, c-s, 6, "wrong final position %ld != %ld");
diff --git a/wcstol.c b/wcstol.c
index 8c4ed14..07113df 100644
--- a/wcstol.c
+++ b/wcstol.c
@@ -63,7 +63,7 @@ int test_wcstol(void)
TEST(l, wcstol(L"00010010001101000101011001111000", 0, 2), 0x12345678, "%ld != %ld");
TEST(l, wcstol(s=L"0xz", &c, 16), 0, "%ld != %ld");
- TEST2(i, c-s, 0, "wrong final position %ld != %ld");
+ TEST2(i, c-s, 1, "wrong final position %ld != %ld");
TEST(l, wcstol(s=L"0x1234", &c, 16), 0x1234, "%ld != %ld");
TEST2(i, c-s, 6, "wrong final position %ld != %ld");