Re: [PATCH] istream_helpers: Fix sscanf typo

Rosen Penev <[email protected]> Wed, 9 Oct 2019 17:48:35 -0700
Newsgroups gmane.comp.lib.uclibc.general
Message-ID <CAKxU2N_285aF3R=h+UT-T2zaajMcvRPtsBhcvnx_q=Nsrfy9ag@mail.gmail.com>
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
<[email protected]> wrote:
>
> On 8 October 2019 00:57:32 CEST, Rosen Penev <[email protected]> wrote:
> >This caused readin not to work properly with long long types.
>
> Please add a testcase too.
> TIA,