Fix tst-sscanf and tst-swscanf on 64-bit.

* stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
	processing int_tests.
This commit is contained in:
David S. Miller 2014-02-05 22:13:13 -08:00
parent 43bb7f07a0
commit 195b8165ac
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-02-11 David S. Miller <davem@davemloft.net>
* stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
processing int_tests.
2014-02-10 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips: Move directory from ports/sysdeps/mips.

View File

@ -186,7 +186,8 @@ main (void)
for (i = 0; i < sizeof (int_tests) / sizeof (int_tests[0]); ++i)
{
int dummy, ret;
long dummy;
int ret;
if ((ret = SSCANF (int_tests[i].str, int_tests[i].fmt,
&dummy)) != int_tests[i].retval)