]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Avoid two warnings in strtol{,l} tests.
authorUlrich Drepper <drepper@redhat.com>
Fri, 30 Oct 2009 16:22:34 +0000 (09:22 -0700)
committerUlrich Drepper <drepper@redhat.com>
Fri, 30 Oct 2009 16:22:34 +0000 (09:22 -0700)
ChangeLog
stdlib/tst-strtol.c
stdlib/tst-strtoll.c

index c82beaf87a084cd8d3ff24f051eeb002ee6a581e..de5289a4e51a99be5e7a844e7ada67c0f61b262f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-10-30  Ulrich Drepper  <drepper@redhat.com>
 
+       * stdlib/tst-strtol.c (tests): Mark one more constant as unsigned
+       to avoid warning.
+       * stdlib/tst-strtoll.c (tests): Likewise.
+
        [BZ #9986]
        * time/strftime_l.c (__strftime_internal): Allow %OC.
 
index 28878546f18f2ea4a425e839247defcd2506012d..f569e55092a5291ffe34bc6f8cdaeaf86c04a411 100644 (file)
@@ -299,7 +299,7 @@ static const struct ltest tests[] =
   {"-2021110011022210012102010021220101220222",
    -9223372036854775808ull, 3, 0, 0},
   {"-2021110011022210012102010021220101221000",
-   -9223372036854775808l, 3, 0, ERANGE},
+   -9223372036854775808ull, 3, 0, ERANGE},
   {"-20000000000000000000000000000000", -9223372036854775808ull, 4, 0, 0},
   {"-20000000000000000000000000000001", -9223372036854775808ull, 4, 0, ERANGE},
   {"-1104332401304422434310311213", -9223372036854775808ull, 5, 0, 0},
index a5a1eb07d9bb499866c6f0c0a031fac27e6d7cf1..ba3338241b8e6079459ce6f171be5f0b93dc795d 100644 (file)
@@ -152,7 +152,7 @@ static const struct ltest tests[] =
   {"-2021110011022210012102010021220101220222",
    -9223372036854775808ull, 3, 0, 0},
   {"-2021110011022210012102010021220101221000",
-   -9223372036854775808l, 3, 0, ERANGE},
+   -9223372036854775808ull, 3, 0, ERANGE},
   {"-20000000000000000000000000000000", -9223372036854775808ull, 4, 0, 0},
   {"-20000000000000000000000000000001", -9223372036854775808ull, 4, 0, ERANGE},
   {"-1104332401304422434310311213", -9223372036854775808ull, 5, 0, 0},