Fix some debug assertions.

refactored code porting in assertions causing debug build failures.
This commit is contained in:
Moonchild 2022-10-03 20:00:02 +00:00 committed by roytam1
commit 1868e88741
7 changed files with 7 additions and 9 deletions

View file

@ -2630,7 +2630,7 @@ nsHttpConnectionMgr::OnMsgCompleteUpgrade(int32_t, ARefBase *param)
void
nsHttpConnectionMgr::OnMsgUpdateParam(int32_t inParam, ARefBase *)
{
MOZ_ASSERT(OnSocketThread(), "not on socket thread");
NS_ASSERTION(PR_GetCurrentThread() == gSocketThread, "not on socket thread");
uint32_t param = static_cast<uint32_t>(inParam);
uint16_t name = ((param) & 0xFFFF0000) >> 16;
uint16_t value = param & 0x0000FFFF;