October 04, 2008 [Issue 2390] New: Missing warning on conversion from int to char | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2390 Summary: Missing warning on conversion from int to char Product: D Version: 1.033 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: business3@twistedpairgaming.com The warning "implicit conversion of expression expr of type 'type' to 'type' can cause loss of data" is not issued when converting an int to a char. void main() { int myInt = 999; byte b = myInt; // Warning issued } void main() { int myInt = 999; char c = myInt; // No warning issued } -- |
October 21, 2008 [Issue 2390] Missing warning on conversion from int to char | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2390 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2008-10-20 22:20 ------- Fixed dmd 1.036 and 2.020 -- |
Copyright © 1999-2021 by the D Language Foundation