mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 821628 - xptcstubs_x86_64_darwin is wrongly converting some bool params
r=bsmedberg
This commit is contained in:
parent
a89bdc9295
commit
f882bcd20b
@ -108,7 +108,8 @@ PrepareAndDispatch(nsXPTCStubBase * self, uint32_t methodIndex,
|
||||
case nsXPTType::T_U16: dp->val.u16 = (uint16_t) value; break;
|
||||
case nsXPTType::T_U32: dp->val.u32 = (uint32_t) value; break;
|
||||
case nsXPTType::T_U64: dp->val.u64 = (uint64_t) value; break;
|
||||
case nsXPTType::T_BOOL: dp->val.b = (bool) value; break;
|
||||
// Cast to uint8_t first, to remove garbage on upper 56 bits.
|
||||
case nsXPTType::T_BOOL: dp->val.b = (bool)(uint8_t) value; break;
|
||||
case nsXPTType::T_CHAR: dp->val.c = (char) value; break;
|
||||
case nsXPTType::T_WCHAR: dp->val.wc = (wchar_t) value; break;
|
||||
|
||||
|
@ -108,7 +108,8 @@ PrepareAndDispatch(nsXPTCStubBase * self, uint32_t methodIndex,
|
||||
case nsXPTType::T_U16: dp->val.u16 = (uint16_t) value; break;
|
||||
case nsXPTType::T_U32: dp->val.u32 = (uint32_t) value; break;
|
||||
case nsXPTType::T_U64: dp->val.u64 = (uint64_t) value; break;
|
||||
case nsXPTType::T_BOOL: dp->val.b = (bool) value; break;
|
||||
// Cast to uint8_t first, to remove garbage on upper 56 bits.
|
||||
case nsXPTType::T_BOOL: dp->val.b = (bool)(uint8_t) value; break;
|
||||
case nsXPTType::T_CHAR: dp->val.c = (char) value; break;
|
||||
case nsXPTType::T_WCHAR: dp->val.wc = (wchar_t) value; break;
|
||||
|
||||
|
@ -108,7 +108,8 @@ PrepareAndDispatch(nsXPTCStubBase * self, uint32_t methodIndex,
|
||||
case nsXPTType::T_U16: dp->val.u16 = (uint16_t) value; break;
|
||||
case nsXPTType::T_U32: dp->val.u32 = (uint32_t) value; break;
|
||||
case nsXPTType::T_U64: dp->val.u64 = (uint64_t) value; break;
|
||||
case nsXPTType::T_BOOL: dp->val.b = (bool) value; break;
|
||||
// Cast to uint8_t first, to remove garbage on upper 56 bits.
|
||||
case nsXPTType::T_BOOL: dp->val.b = (bool)(uint8_t) value; break;
|
||||
case nsXPTType::T_CHAR: dp->val.c = (char) value; break;
|
||||
case nsXPTType::T_WCHAR: dp->val.wc = (wchar_t) value; break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user