diff options
author | Kirill Yukhin <kirill.yukhin@intel.com> | 2014-11-12 16:24:30 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2014-11-12 08:24:30 -0800 |
commit | 43cf21c6861a53ed7754dd7aeef39b12db73befa (patch) | |
tree | c7be815e170de5762da5bb75a6b8a9e7083664af /libiberty | |
parent | 4feb5dd8606bdf368c44c37d3338d61abaed3be0 (diff) | |
download | gcc-43cf21c6861a53ed7754dd7aeef39b12db73befa.zip gcc-43cf21c6861a53ed7754dd7aeef39b12db73befa.tar.gz gcc-43cf21c6861a53ed7754dd7aeef39b12db73befa.tar.bz2 |
Cast strtol return to unsigned long
* testsuite/test-strtol.c (run_tests): Cast strtol return to
unsigned long.
From-SVN: r217429
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/testsuite/test-strtol.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 98a7c5b..82a49ea 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2014-11-12 Kirill Yukhin <kirill.yukhin@intel.com> + + * testsuite/test-strtol.c (run_tests): Cast strtol return to + unsigned long. + 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com> Manuel López-Ibáñez <manu@gcc.gnu.org> diff --git a/libiberty/testsuite/test-strtol.c b/libiberty/testsuite/test-strtol.c index 96d6871..6faf81b 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); |