http://d.puremagic.com/issues/show_bug.cgi?id=6377
Summary: std.conv.to should check range when changing
signedness
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Vladimir Panteleev <[email protected]> 2011-07-24
15:54:35 PDT ---
import std.conv, std.exception;
void main()
{
int b = -1;
assertThrown!ConvException(to!uint(b));
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------