www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 898] New: std.conv.toInt doesn't raise ConvOverflowError

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: diablotail 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.


-- 
Jan 28 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=898


diablotail yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





*** Fixed in version 1.005 ***


-- 
Feb 06 2007