Bug 2390 – Missing warning on conversion from int to char

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-10-03T23:14:00Z
Last change time
2014-03-01T00:36:14Z
Assigned to
bugzilla
Creator
bus_dbugzilla

Comments

Comment #0 by bus_dbugzilla — 2008-10-03T23:14:11Z
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 }
Comment #1 by bugzilla — 2008-10-20T22:20:44Z
Fixed dmd 1.036 and 2.020