Closed
Bug 670338
Opened 15 years ago
Closed 15 years ago
Add double overload to NSToIntRound to stop 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)
|
745 bytes,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #670111 +++
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 clarity reducing changes like:
- TabWidth(i - startOffset, nextTab - mOffsetFromBlockOriginForTabs));
+ TabWidth(i - startOffset,
+ NSToIntRound(float(nextTab - mOffsetFromBlockOriginForTabs))));
Roc suggested that I add a double overload to NSToIntRound.
Hopefully this will reduce the number of build warnings in files other than nsTextFrameThebes.cpp as well.
| Assignee | ||
Comment 1•15 years ago
|
||
Double overload for NSToIntRound, broken out from bug 447838.
Was going to include this in bug 670111 along with the NSToCoord* changes, but that's already reviewed and checkin-needed, so thought it would just be easier to deal with separately.
Attachment #544978 -
Flags: review?(roc)
| Assignee | ||
Updated•15 years ago
|
Whiteboard: [build_warning]
| Assignee | ||
Comment 2•15 years ago
|
||
Comment on attachment 544978 [details] [diff] [review]
Patch v1
Review of attachment 544978 [details] [diff] [review]:
-----------------------------------------------------------------
Attachment #544978 -
Flags: review?(roc) → review+
Comment 5•15 years ago
|
||
Flags: in-testsuite-
Keywords: checkin-needed
Comment 6•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Comment 7•15 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/af960bd72863>
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 8•15 years ago
|
||
And this backout was merged to m-c: http://hg.mozilla.org/mozilla-central/rev/af960bd72863
Comment 9•15 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•