Re: [PATCH] istream_helpers: Fix sscanf typo

2019-10-09 Thread Rosen Penev
I tried adding a test case but I can't seem to get it to work This is what I have: a.str("0xFF 0xff 0x55"); a >> ll >> ull >> s; std::cout << "ll (should be 0xFF): " << ll << std::endl; std::cout << "ull (should be 0xff): " << ull << std::endl; It's not writing

Re: [PATCH] istream_helpers: Fix sscanf typo

2019-10-08 Thread Bernhard Reutner-Fischer
On 8 October 2019 00:57:32 CEST, Rosen Penev wrote: >This caused readin not to work properly with long long types. Please add a testcase too. TIA, ___ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc

[PATCH] istream_helpers: Fix sscanf typo

2019-10-07 Thread Rosen Penev
This caused readin not to work properly with long long types. Found accidentally through a glibc warning (declared with warn_unused_result). Tested with gptfdisk on OpenWrt. Signed-off-by: Rosen Penev --- include/istream_helpers | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff