[PATCH] istream_helpers: Fix sscanf typo

Rosen Penev rosenp at gmail.com
Thu Oct 10 00:48:35 UTC 2019


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 them properly. Maybe I misunderstand what the sscanf
in the patch is supposed to do.

On Mon, Oct 7, 2019 at 11:08 PM Bernhard Reutner-Fischer
<rep.dot.nop at gmail.com> wrote:
>
> On 8 October 2019 00:57:32 CEST, Rosen Penev <rosenp at gmail.com> wrote:
> >This caused readin not to work properly with long long types.
>
> Please add a testcase too.
> TIA,


More information about the uClibc mailing list