Commit e09d523f authored by Gijs Kruitbosch's avatar Gijs Kruitbosch
Browse files

Bug 1513725 - fix xptcall stubs for aarch64 for bool params, r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D17252

--HG--
extra : moz-landing-system : lando
parent 9c7401c2
......@@ -152,9 +152,9 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint64_t* args,
case nsXPTType::T_BOOL:
if (next_gpr < PARAM_GPR_COUNT) {
dp->val.b = (bool)gprData[next_gpr++];
dp->val.b = (bool)(uint8_t)gprData[next_gpr++];
} else {
dp->val.b = (bool)*ap++;
dp->val.b = (bool)(uint8_t)*ap++;
}
break;
......
......@@ -150,9 +150,9 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32_t methodIndex, uint64_t* args,
case nsXPTType::T_BOOL:
if (next_gpr < PARAM_GPR_COUNT) {
dp->val.b = (bool)gprData[next_gpr++];
dp->val.b = (bool)(uint8_t)gprData[next_gpr++];
} else {
dp->val.b = (bool)*ap++;
dp->val.b = (bool)(uint8_t)*ap++;
}
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment