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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;

+2 −2
Original line number Diff line number Diff line
@@ -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;