Bug 1335324 - Fix a -Wmax-unsigned-zero warnings (std::max(unsigned int, 0u) r=jwatt

MozReview-Commit-ID: BYraLQCG24S

--HG--
extra : rebase_source : 869c42d589176d8e844a873aa16e9826750e593e
This commit is contained in:
Sylvestre Ledru 2017-02-06 16:21:54 +01:00
parent 7870b04763
commit 21e7d4ff3c

View File

@ -207,7 +207,7 @@ SVGPathData::GetPathSegAtLength(float aDistance) const
MOZ_ASSERT(i == mData.Length(), "Very, very bad - mData corrupt");
return std::max(0U, segIndex - 1); // -1 because while loop takes us 1 too far
return std::max(1U, segIndex) - 1; // -1 because while loop takes us 1 too far
}
/**