mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in dom/animation/ r=hiro
Depends on D43779 Differential Revision: https://phabricator.services.mozilla.com/D43780 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
843fae6aee
commit
acfbfdc9af
@ -182,9 +182,9 @@ ComputedTiming AnimationEffect::GetComputedTimingAt(
|
||||
// Determine the 0-based index of the current iteration.
|
||||
// https://drafts.csswg.org/web-animations/#current-iteration
|
||||
result.mCurrentIteration =
|
||||
(result.mIterations >= UINT64_MAX &&
|
||||
(result.mIterations >= double(UINT64_MAX) &&
|
||||
result.mPhase == ComputedTiming::AnimationPhase::After) ||
|
||||
overallProgress >= UINT64_MAX
|
||||
overallProgress >= double(UINT64_MAX)
|
||||
? UINT64_MAX // In GetComputedTimingDictionary(),
|
||||
// we will convert this into Infinity
|
||||
: static_cast<uint64_t>(overallProgress);
|
||||
|
Loading…
Reference in New Issue
Block a user