libc-testsuite - correctness and quality tests for libc implementations

correctness and quality tests for libc implementations
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--strtol.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/strtol.c b/strtol.c
index 9ccee53..c462cc1 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, 1, "wrong final position %ld != %ld");
+ TEST2(i, c-s, 0, "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");
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月05日 11:14:56 +0000

AltStyle によって変換されたページ (->オリジナル) /