diff --git a/layout/base/nsCSSRendering.cpp b/layout/base/nsCSSRendering.cpp index 871f85bf2d50..0e4776d54325 100644 --- a/layout/base/nsCSSRendering.cpp +++ b/layout/base/nsCSSRendering.cpp @@ -3334,7 +3334,7 @@ static nscoord ComputeSpacedRepeatSize(nscoord aImageDimension, nscoord aAvailableSpace, bool& aRepeat) { - float ratio = aAvailableSpace / aImageDimension; + float ratio = static_cast(aAvailableSpace) / aImageDimension; if (ratio < 2.0f) { // If you can't repeat at least twice, then don't repeat. aRepeat = false;