Title: [113006] trunk/Source/WebCore
Revision
113006
Author
[email protected]
Date
2012-04-03 03:26:34 -0700 (Tue, 03 Apr 2012)

Log Message

2012-04-03  Nikolas Zimmermann  <[email protected]>

        Not reviewed. Next chromium build fix, this time for real :-)

        * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h:
        (WebCore::SVGAnimatedEnumerationPropertyTearOff::setBaseVal): Cast highestEnumValue to unsigned.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (113005 => 113006)


--- trunk/Source/WebCore/ChangeLog	2012-04-03 10:19:50 UTC (rev 113005)
+++ trunk/Source/WebCore/ChangeLog	2012-04-03 10:26:34 UTC (rev 113006)
@@ -1,5 +1,12 @@
 2012-04-03  Nikolas Zimmermann  <[email protected]>
 
+        Not reviewed. Next chromium build fix, this time for real :-)
+
+        * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h:
+        (WebCore::SVGAnimatedEnumerationPropertyTearOff::setBaseVal): Cast highestEnumValue to unsigned.
+
+2012-04-03  Nikolas Zimmermann  <[email protected]>
+
         Not reviewed. Attempt to fix chromium build.
 
         * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h: Unsigned is always >= 0 - only check if its 0 here.

Modified: trunk/Source/WebCore/svg/properties/SVGAnimatedEnumerationPropertyTearOff.h (113005 => 113006)


--- trunk/Source/WebCore/svg/properties/SVGAnimatedEnumerationPropertyTearOff.h	2012-04-03 10:19:50 UTC (rev 113005)
+++ trunk/Source/WebCore/svg/properties/SVGAnimatedEnumerationPropertyTearOff.h	2012-04-03 10:26:34 UTC (rev 113006)
@@ -33,7 +33,7 @@
     virtual void setBaseVal(const unsigned& property, ExceptionCode& ec)
     {
         // All SVG enumeration values, that are allowed to be set via SVG DOM start with 1, 0 corresponds to unknown and is not settable through SVG DOM.
-        if (!property || property > SVGPropertyTraits<EnumType>::highestEnumValue()) {
+        if (!property || property > static_cast<unsigned>(SVGPropertyTraits<EnumType>::highestEnumValue())) {
             ec = SVGException::SVG_INVALID_VALUE_ERR;
             return;
         }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to