Bug 3074 – std.conv.to!(string)(int.min)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-06-17T00:04:00Z
Last change time
2015-06-09T01:27:57Z
Assigned to
andrei
Creator
julien

Comments

Comment #0 by julien — 2009-06-17T00:04:06Z
Hello, import std.stdio, std.conv; void main() { writeln(to!(string)(int.min)); } dmd 2.030, stock phobos, Intel Core i7. On Debian 5 32b, -debug : returns "[email protected](2473): Range violation". On Windows XP 32b, -debug : returns "[email protected](2472): Range violation". On Debian 5 32b, -release : returns "-184¨šˆ¿4071562067968" On Windows XP 32b, -release : returns "-18446744071562067968"