зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1571446 follow-up - Don't use std::min to avoid weird linker errors in no-opt debug builds. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D48671 --HG-- extra : histedit_source : 145ca6ac1d74e30c00c0a292f70be110bc154137
This commit is contained in:
Родитель
0082e28845
Коммит
09a15f9e11
|
@ -2353,7 +2353,9 @@ class ScriptWarmUpData {
|
|||
uintptr_t data_ = 0 | WarmUpCountTag;
|
||||
|
||||
void setWarmUpCount(uint32_t count) {
|
||||
count = std::min(count, MaxWarmUpCount);
|
||||
if (count > MaxWarmUpCount) {
|
||||
count = MaxWarmUpCount;
|
||||
}
|
||||
data_ = (uintptr_t(count) << NumTagBits) | WarmUpCountTag;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче