Closed
Bug 957859
Opened 11 years ago
Closed 11 years ago
gfx\layers\Compositor.cpp(116) : warning C4305: 'argument' : truncation from 'double' to 'mozilla::gfx::Float'
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
3.01 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
Build warning, found when trying bug 957784:
{
gfx\layers\Compositor.cpp(116) : warning C4305: 'argument' : truncation from 'double' to 'mozilla::gfx::Float'
This is in numeric literals passed into the Color() constructor.
As shown here...
http://mxr.mozilla.org/mozilla-central/source/gfx/2d/Types.h#143
gfx::Color uses "f" suffixes on numeric literals internally, to force "float" type.
We should just use those in this code, too.
Assignee | ||
Comment 1•11 years ago
|
||
Actually, I'll just make this bug track all the related warnings for this file, since they're all the same category (truncating a numeric literal to from double to float):
{
c:\builds\moz2_slave\try-w32-0000000000000000000000\build\gfx\layers\Compositor.cpp(103) : warning C4305: 'initializing' : truncation from 'double' to 'float'
c:\builds\moz2_slave\try-w32-0000000000000000000000\build\gfx\layers\Compositor.cpp(116) : warning C4305: 'argument' : truncation from 'double' to 'mozilla::gfx::Float'
c:\builds\moz2_slave\try-w32-0000000000000000000000\build\gfx\layers\Compositor.cpp(116) : warning C4305: 'argument' : truncation from 'double' to 'mozilla::gfx::Float'
c:\builds\moz2_slave\try-w32-0000000000000000000000\build\gfx\layers\Compositor.cpp(125) : warning C4305: '*=' : truncation from 'double' to 'mozilla::gfx::Float'
c:\builds\moz2_slave\try-w32-0000000000000000000000\build\gfx\layers\Compositor.cpp(126) : warning C4305: '*=' : truncation from 'double' to 'mozilla::gfx::Float'
c:\builds\moz2_slave\try-w32-0000000000000000000000\build\gfx\layers\Compositor.cpp(127) : warning C4305: '*=' : truncation from 'double' to 'mozilla::gfx::Float'
}
Assignee | ||
Comment 2•11 years ago
|
||
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #8357471 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 3•11 years ago
|
||
Updated fix, now adding an "f" suffix to an arg for a Color in ContainerLayerComposite.cpp, too, to fix:
{
gfx\layers\composite/ContainerLayerComposite.cpp(179) : warning C4305: 'argument' : truncation from 'double' to 'mozilla::gfx::Float'
}
Attachment #8357471 -
Attachment is obsolete: true
Attachment #8357471 -
Flags: review?(nical.bugzilla)
Attachment #8357494 -
Flags: review?(nical.bugzilla)
Assignee | ||
Updated•11 years ago
|
Hardware: x86_64 → x86
Updated•11 years ago
|
Attachment #8357494 -
Flags: review?(nical.bugzilla) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Flags: in-testsuite-
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•