Closed Bug 885 Opened 26 years ago Closed 26 years ago

BUILD: compiler warning

Categories

(MozillaClassic Graveyard :: XFE, defect, P2)

x86
Linux
defect

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);
Actually the right fix is : luminance = (int) ((0.299 * r) + (0.587 * g) + (0.114 * b));
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
ok, i fixed it.
QA Contact: 1376
qa contact set to reporter for verify
VERIFIED due to no changes in over a year
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.