Bug 1360321 - 4e. Fix std::min type error; r=froydnj r=glandium

Specify the same type for std::min arguments to avoid the error.

MozReview-Commit-ID: C7yHu7c1s34
This commit is contained in:
Jim Chen 2017-05-17 13:06:22 -04:00
parent 7752e253ee
commit 8dd6064fc9

View File

@ -18,7 +18,7 @@ ParseVarLenInt(const uint8_t* aBuf, size_t aBufSize, uint64_t* aValue)
if (!aBufSize) {
return 0;
}
aBufSize = std::min(9u, aBufSize);
aBufSize = std::min(size_t(9), aBufSize);
*aValue = aBuf[0] & 0x7F;
size_t i = 0;