Bug 1930994 - Replace use of mozilla::clamped with std::clamp. r=longsonr,darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D228876 --HG-- extra : rebase_source : b3acfd1976557a7d5d7097d8d082dd0e429cca21 extra : amend_source : 3ae0907f063c9d892281e3f78174aa66044e22e9
This commit is contained in:
Родитель
94ecf8e955
Коммит
a8819d85fc
|
@ -107,7 +107,7 @@ nsresult nsMsgProtocol::GetQoSBits(uint8_t* aQoSBits) {
|
|||
int32_t val;
|
||||
rv = prefBranch->GetIntPref(prefName.get(), &val);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
*aQoSBits = (uint8_t)clamped(val, 0, 0xff);
|
||||
*aQoSBits = (uint8_t)std::clamp(val, 0, 0xff);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче