#1006 problem with printf and 64bit integer

closed
nobody
None
2007-03-05
2007-02-02
RayeR
No

I found a bug in printf when printing very large number like this:

printf("%llX\n",0x1234567891AULL);

it will show only 8 digists 4567891A. Doesn't matter if argument is a constant or variable, also for %LX and %llx I got the same. Also %llu, %lld are truncated.

If I compile the same code under DOS/DJGPP I got always right result.

I use latest mingw packages from oficial website, gcc 3.4.5, bnu 2.16.91

Discussion

  • Earnie Boyd

    Earnie Boyd - 2007-02-02
    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 30 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks