[Issue 898] New: std.conv.toInt doesn't raise ConvOverflowError

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 28 06:12:08 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=898

           Summary: std.conv.toInt doesn't raise ConvOverflowError
           Product: D
           Version: 1.004
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: diablotail at yahoo.com


A code like:

writefln(std.conv.toInt("5656566565"));

doesn't raise an exception, and it also prints the value 1361599269 resulted
from the integer overflow.


-- 



More information about the Digitalmars-d-bugs mailing list