diff --git a/image/FrameAnimator.cpp b/image/FrameAnimator.cpp index 0f3c3436d50..e991b61334b 100644 --- a/image/FrameAnimator.cpp +++ b/image/FrameAnimator.cpp @@ -192,7 +192,7 @@ FrameAnimator::AdvanceFrame(TimeStamp aTime) if (delay.ToMilliseconds() > loopTime) { // Explicitly use integer division to get the floor of the number of // loops. - uint32_t loops = static_cast(delay.ToMilliseconds()) / loopTime; + uint64_t loops = static_cast(delay.ToMilliseconds()) / loopTime; mCurrentAnimationFrameTime += TimeDuration::FromMilliseconds(loops * loopTime); }