From: Kirill Yukhin Date: Wed, 12 Nov 2014 16:24:30 +0000 (+0000) Subject: Cast strtol return to unsigned long X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43cf21c6861a53ed7754dd7aeef39b12db73befa;p=gcc.git Cast strtol return to unsigned long * testsuite/test-strtol.c (run_tests): Cast strtol return to unsigned long. From-SVN: r217429 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 98a7c5b34bc..82a49ea013c 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2014-11-12 Kirill Yukhin + + * testsuite/test-strtol.c (run_tests): Cast strtol return to + unsigned long. + 2014-11-11 Anthony Brandon Manuel López-Ibáñez diff --git a/libiberty/testsuite/test-strtol.c b/libiberty/testsuite/test-strtol.c index 96d6871c777..6faf81b5cae 100644 --- a/libiberty/testsuite/test-strtol.c +++ b/libiberty/testsuite/test-strtol.c @@ -132,7 +132,8 @@ run_tests (const struct test_data_t *test_data, size_t ntests) switch (test_data[i].fun) { case STRTOL: - res = strtol (test_data[i].nptr, 0, test_data[i].base); + res = (unsigned long) strtol (test_data[i].nptr, + 0, test_data[i].base); break; case STRTOUL: res = strtoul (test_data[i].nptr, 0, test_data[i].base);