Bug 1103 – metastrings.ToString fails for long > 0xFFFF_FFFF

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-06T06:30:00Z
Last change time
2014-02-16T15:25:38Z
Keywords
patch
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2007-04-06T06:30:10Z
Originaly posted by alcohol <[email protected]> in [email protected]: # # import std.metastrings; # pragma(msg,ToString!(0x100000000)); # dmd -c test result: 0 expected result: 4294967296 cause: std/metastring.d:88 const char[] ToString = ToString!(cast(uint)I); should be std/metastring.d:88 const char[] ToString = ToString!(cast(ulong)I);
Comment #1 by bugzilla — 2007-07-01T13:28:26Z
Fixed DMD 1.018 and DMD 2.002