From feb41271b88b03aecee2b38c91060f91ca526113 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 14 Jul 2011 22:08:56 -0400 Subject: revert change to strtol/wcstol tests for 0xz. previous behavior was right.. --- strtol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strtol.c') 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"); -- cgit v1.2.1