Closed
Bug 885
Opened 26 years ago
Closed 26 years ago
BUILD: compiler warning
Categories
(MozillaClassic Graveyard :: XFE, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: raff, Assigned: ramiro)
Details
The compiler complains about assigning a double to an integer:
Index: cmd/xfe/icons/mkicons.cpp
===================================================================
RCS file: /cvsroot/mozilla/cmd/xfe/icons/mkicons.cpp,v
retrieving revision 3.3
diff -b -r3.3 mkicons.cpp
445c445
< luminance = (0.299 * r) + (0.587 * g) + (0.114 * b);
---
> luminance = (int) (0.299 * r) + (0.587 * g) + (0.114 * b);
Reporter | ||
Comment 1•26 years ago
|
||
Actually the right fix is :
luminance = (int) ((0.299 * r) + (0.587 * g) + (0.114 * b));
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•