Bug 12505 – Null pointers are pretty-printed even when hex output is requested

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-01T21:48:00Z
Last change time
2014-04-03T05:03:23Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
yebblies

Comments

Comment #0 by yebblies — 2014-04-01T21:48:37Z
import std.stdio; void main() { void* p = null; writefln("%08X", p); } prints: null when execting: 00000000 I found this in some old code that used to work.
Comment #1 by monarchdodra — 2014-04-02T01:13:37Z
Comment #2 by dlang-bugzilla — 2014-04-03T03:22:16Z
Comment #3 by k.hara.pg — 2014-04-03T03:47:43Z
Comment #4 by github-bugzilla — 2014-04-03T04:41:06Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/b52649ab8ba652e82ae3fe39c9c0ce2a28829465 fix Issue 12505 - Null pointers are pretty-printed even when hex output is requested https://github.com/D-Programming-Language/phobos/commit/c9666fb102cc46fb6d3255fbf867bc90a41c58be Merge pull request #2068 from 9rnsr/fix12505 Issue 12505 - Null pointers are pretty-printed even when hex output is requested