From: David S. Miller Date: Thu, 6 Feb 2014 06:13:13 +0000 (-0800) Subject: Fix tst-sscanf and tst-swscanf on 64-bit. X-Git-Tag: glibc-2.20~882 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=195b8165ac35dfe9f5ba14e1a69bb88b7686c5a9;p=platform%2Fupstream%2Fglibc.git Fix tst-sscanf and tst-swscanf on 64-bit. * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when processing int_tests. --- diff --git a/ChangeLog b/ChangeLog index c457d8b..ce8b207 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-02-11 David S. Miller + + * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when + processing int_tests. + 2014-02-10 Joseph Myers * sysdeps/mips: Move directory from ports/sysdeps/mips. 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)