зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1336994 - Fix two -Wmax-unsigned-zero warnings (std::max(unsigned int, 0u) r=bz
MozReview-Commit-ID: LX663JqH3lM --HG-- extra : rebase_source : ea870f7bb0be3d3df558beab8590557c3743385d
This commit is contained in:
Родитель
bb1479e9ad
Коммит
ca64f27bda
|
@ -770,7 +770,6 @@ HTMLImageElement::NaturalHeight()
|
|||
double density = mResponsiveSelector->GetSelectedImageDensity();
|
||||
MOZ_ASSERT(density >= 0.0);
|
||||
height = NSToIntRound(double(height) / density);
|
||||
height = std::max(height, 0u);
|
||||
}
|
||||
|
||||
return height;
|
||||
|
@ -798,7 +797,6 @@ HTMLImageElement::NaturalWidth()
|
|||
double density = mResponsiveSelector->GetSelectedImageDensity();
|
||||
MOZ_ASSERT(density >= 0.0);
|
||||
width = NSToIntRound(double(width) / density);
|
||||
width = std::max(width, 0u);
|
||||
}
|
||||
|
||||
return width;
|
||||
|
|
Загрузка…
Ссылка в новой задаче