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:
Jan de Mooij 2019-10-09 13:16:24 +03:00
Родитель 0082e28845
Коммит 09a15f9e11
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;
}