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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 26 12:39:50 PDT 2011


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





--- Comment #35 from Marc-Antoine Ruel <maruel at chromium.org>  2011-04-26 12:39:50 PST ---
(From update of attachment 86335)
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.

-- 
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