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 | |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | stdio-common/tst-sscanf.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index c457d8b72f..ce8b20735d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. 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) |