Bug 1934776 - Cast aDecompressedSize to size_t for consistency. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D230906
This commit is contained in:
@@ -15,7 +15,7 @@ bool RLBoxConvertWOFF2ToTTF(const char* aData, unsigned long aLength,
|
|||||||
std::unique_ptr<std::string> buf =
|
std::unique_ptr<std::string> buf =
|
||||||
std::make_unique<std::string>(aDecompressedSize, 0);
|
std::make_unique<std::string>(aDecompressedSize, 0);
|
||||||
woff2::WOFF2StringOut out(buf.get());
|
woff2::WOFF2StringOut out(buf.get());
|
||||||
out.SetMaxSize(std::max(aDecompressedSize, woff2::kDefaultMaxSize));
|
out.SetMaxSize(std::max(size_t(aDecompressedSize), woff2::kDefaultMaxSize));
|
||||||
if (!woff2::ConvertWOFF2ToTTF(reinterpret_cast<const uint8_t*>(aData),
|
if (!woff2::ConvertWOFF2ToTTF(reinterpret_cast<const uint8_t*>(aData),
|
||||||
aLength, &out)) {
|
aLength, &out)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user