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
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.
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;
}