diff options
author | David S. Miller <davem@davemloft.net> | 2014-02-05 22:13:13 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-11 00:37:53 -0800 |
commit | 195b8165ac35dfe9f5ba14e1a69bb88b7686c5a9 (patch) | |
tree | b0867a033220fc242efcc2f818daa0951ebe9cd3 /stdio-common/tst-sscanf.c | |
parent | 43bb7f07a029ce0880f2dcc83b4131d705befa57 (diff) | |
download | glibc-195b8165ac35dfe9f5ba14e1a69bb88b7686c5a9.tar.gz glibc-195b8165ac35dfe9f5ba14e1a69bb88b7686c5a9.tar.xz glibc-195b8165ac35dfe9f5ba14e1a69bb88b7686c5a9.zip |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdio-common/tst-sscanf.c b/stdio-common/tst-sscanf.c index 1214c7d068..9fef93a535 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) |