Commit 43cf21c6 by Kirill Yukhin Committed by H.J. Lu

Cast strtol return to unsigned long

	* testsuite/test-strtol.c (run_tests): Cast strtol return to
	unsigned long.

From-SVN: r217429
parent 4feb5dd8
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>
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment