[Webkit-unassigned] [Bug 56052] percentages are incorrectly rounded in WebKit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 26 12:42:00 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=56052





--- Comment #36 from Rik Cabanier <cabanier at adobe.com>  2011-04-26 12:41:59 PST ---
(In reply to comment #35)
> (From update of attachment 86335 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=86335&action=review
> 
> > Source/WebCore/platform/Length.h:198
> > +        float fromValue = from.isZero() ? 0 : from.value();
> 
> This causes:
> Source\WebCore\platform\Length.h(196) : warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data
> 
> This is genuine since value() returns an int. Either change the type to int or use getFloatValue() or the thing that is the more sensible here as I'm not familiar with this code.

What platform are you seeing this on?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list