aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tst-sscanf.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-02-05 22:13:13 -0800
committerDavid S. Miller <davem@davemloft.net>2014-02-11 00:37:53 -0800
commit195b8165ac35dfe9f5ba14e1a69bb88b7686c5a9 (patch)
treeb0867a033220fc242efcc2f818daa0951ebe9cd3 /stdio-common/tst-sscanf.c
parent43bb7f07a029ce0880f2dcc83b4131d705befa57 (diff)
downloadglibc-195b8165ac35dfe9f5ba14e1a69bb88b7686c5a9.zip
glibc-195b8165ac35dfe9f5ba14e1a69bb88b7686c5a9.tar.gz
glibc-195b8165ac35dfe9f5ba14e1a69bb88b7686c5a9.tar.bz2
Fix tst-sscanf and tst-swscanf on 64-bit.
* stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when processing int_tests.
Diffstat (limited to 'stdio-common/tst-sscanf.c')
-rw-r--r--stdio-common/tst-sscanf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stdio-common/tst-sscanf.c b/stdio-common/tst-sscanf.c
index 1214c7d..9fef93a 100644
--- a/stdio-common/tst-sscanf.c
+++ b/stdio-common/tst-sscanf.c
@@ -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)