Bug 2829 - sprintf("%X") fails for bignums
: sprintf("%X") fails for bignums
Status: RESOLVED FIXED
: Pike
Core
: 7.2
: All All
: P3 (normal) normal
: ---
Assigned To:
:
:
:
  Show dependency treegraph
 
Reported: 2002-03-08 10:49 CET by
Modified: 2002-03-08 10:51 CET (History)
Scrum Prio:
In scrum?: ---
Story included in sprints:
Unplanned in sprints:


Attachments


Description From 2002-03-08 10:49:50 CET
From the Roxen chat:

19:34 Grendel   guys, a quickie about sprintf in
Pike
19:35 Grendel   Pike v7.2 release 298 running Hilfe v2.0 (Incremental Pike
Frontend)
                > int i =
0xFFFFFFFF;
                Result:
4294967295
                > sprintf("%X",
i);
                Result:
"ffffffff"
                > sprintf("%X",
0xFFFFFFFF);
                Result:
"ffffffff"
                > sprintf("%X",
0xFFFFFFF);
                Result:
"FFFFFFF"

>
19:36 Grendel   is this behavior
expected/desired?
19:37 Genesys   you mean %X on an integer being lowercase?  that looks
wrong
------- Comment #1 From 2002-03-08 10:52:38 CET -------
Seems to be a bug in _sprintf() for bignums.
------- Comment #2 From 2002-03-08 10:52:53 CET -------
Fixed in Pike 7.2 and 7.3.

Note

You need to log in before you can comment on or make changes to this bug.