Reviewed by Eric.
Release build fix.
* ksvg2/svg/SVGAnimationElement.cpp:
(WebCore::SVGAnimationElement::calculateValueIndexAndPercentagePast): Added static cast
to unsigned when calculating flooredValueIndex.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19181
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-01-26 David Kilzer <ddkilzer@webkit.org>
+
+ Reviewed by Eric.
+
+ Release build fix.
+
+ * ksvg2/svg/SVGAnimationElement.cpp:
+ (WebCore::SVGAnimationElement::calculateValueIndexAndPercentagePast): Added static cast
+ to unsigned when calculating flooredValueIndex.
+
2007-01-26 Darin Adler <darin@apple.com>
- checked in slightly newer revision of the patch below
caculateValueIndexForKeyTimes(timePercentage, m_keyTimes, valueIndex, lastKeyTimePercentage, nextKeyTimePercentage);
else {
unsigned lastPossibleIndex = (m_values.size() ? m_values.size() - 1: 1);
- unsigned flooredValueIndex = timePercentage * lastPossibleIndex;
+ unsigned flooredValueIndex = static_cast<unsigned>(timePercentage * lastPossibleIndex);
valueIndex = flooredValueIndex;
lastKeyTimePercentage = flooredValueIndex / (float)lastPossibleIndex;
nextKeyTimePercentage = (flooredValueIndex + 1) / (float)lastPossibleIndex;