2012-04-03 Nikolas Zimmermann <nzimmermann@rim.com>
authorzimmermann@webkit.org <zimmermann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2012 10:26:34 +0000 (10:26 +0000)
committerzimmermann@webkit.org <zimmermann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2012 10:26:34 +0000 (10:26 +0000)
        Not reviewed. Next chromium build fix, this time for real :-)

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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113006 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/svg/properties/SVGAnimatedEnumerationPropertyTearOff.h

index 2bdaacf..4be81db 100644 (file)
@@ -1,5 +1,12 @@
 2012-04-03  Nikolas Zimmermann  <nzimmermann@rim.com>
 
+        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  <nzimmermann@rim.com>
+
         Not reviewed. Attempt to fix chromium build.
 
         * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h: Unsigned is always >= 0 - only check if its 0 here.
index 28aaaa4..fdb32b6 100644 (file)
@@ -33,7 +33,7 @@ public:
     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;
         }