Closed
Bug 670111
Opened 13 years ago
Closed 13 years ago
Add double overloads to NSToCoord(Round|Floor|Ceil|Clamped) to stop numerous build warnings
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: emorley, Assigned: emorley)
References
(Blocks 1 open bug)
Details
(Whiteboard: [build_warning])
Attachments
(1 file)
3.22 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
Bug 447838 is trying to stop the build warnings in nsTextFrameThebes.cpp, many of which are along the lines of: > warning C4244: 'argument' : conversion from 'gfxFloat' to 'float', possible loss of data To save countless delightful changes like: - *snappedEndEdge = NSToCoordFloor(gfxFloat(frameWidth) - advanceWidth); + *snappedEndEdge = NSToCoordFloor(float(gfxFloat(frameWidth) - advanceWidth)); Roc suggested that I add double overloads to NSToCoord(Round|Floor|Ceil|Clamped). A quick glance at |conversion from 'gfxFloat' to 'float'| build warnings in files other than nsTextFrameThebes.cpp, shows that this will fix some of the warnings in other files as well :-)
Assignee | ||
Updated•13 years ago
|
Blocks: buildwarning
Assignee | ||
Comment 1•13 years ago
|
||
Double overloads of NSToCoord(Round|Floor|Ceil|Clamped), broken out from bug 447838. Thanks :-)
Attachment #544777 -
Flags: review?(roc)
Comment on attachment 544777 [details] [diff] [review] Patch v1 Review of attachment 544777 [details] [diff] [review]: -----------------------------------------------------------------
Attachment #544777 -
Flags: review?(roc) → review+
Assignee | ||
Comment 3•13 years ago
|
||
Passed try: http://dev.philringnalda.com/tbpl/?tree=Try&rev=7e2dec83b318
Keywords: checkin-needed
Assignee | ||
Updated•13 years ago
|
Whiteboard: [build_warning]
Comment 4•13 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/e2139ab44181
Flags: in-testsuite-
Keywords: checkin-needed
Comment 5•13 years ago
|
||
Merged: http://hg.mozilla.org/mozilla-central/rev/e2139ab44181
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•13 years ago
|
Target Milestone: --- → mozilla8
Comment 6•13 years ago
|
||
I've backed this out from inbound to see if it affects the frequency of bug 629196: <http://hg.mozilla.org/integration/mozilla-inbound/rev/2f5959074445>
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 7•13 years ago
|
||
And this backout was merged to m-c: http://hg.mozilla.org/mozilla-central/rev/2f5959074445
Assignee | ||
Comment 8•13 years ago
|
||
Ehsan, please can this and bug 670338 be relanded now, given 4 x 100 OS X 10.6 reftest try runs showed no correlation (https://bugzilla.mozilla.org/show_bug.cgi?id=629196#c27) and that the test has now been adjusted / bug 629196 resolved fixed anyway (https://bugzilla.mozilla.org/show_bug.cgi?id=629196#c30). Thanks :-)
Comment 9•13 years ago
|
||
Sure, just pushed them both to inbound. Thanks for the investigation!
Comment 10•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/10601c08fc30
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•