digitalmars.D.bugs - [Issue 2390] New: Missing warning on conversion from int to char
- d-bugmail puremagic.com (25/25) Oct 03 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2390
- d-bugmail puremagic.com (9/9) Oct 20 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2390
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 } --
Oct 03 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2390 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed dmd 1.036 and 2.020 --
Oct 20 2008