mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
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:
parent
7870b04763
commit
21e7d4ff3c
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user