diff options
author | athenian200 <athenian200@outlook.com> | 2019-10-31 19:35:03 -0500 |
---|---|---|
committer | athenian200 <athenian200@outlook.com> | 2019-10-31 19:35:03 -0500 |
commit | a9dc528a4a7b0aaad5308aff70963485ec3e9bec (patch) | |
tree | ed292054c46d4131bd475ae690df41b5b07a4a45 /xpcom/reflect/xptcall/md | |
parent | 687a798e6dedacb8b42826debcd8e89baa69ce94 (diff) | |
download | UXP-a9dc528a4a7b0aaad5308aff70963485ec3e9bec.tar UXP-a9dc528a4a7b0aaad5308aff70963485ec3e9bec.tar.gz UXP-a9dc528a4a7b0aaad5308aff70963485ec3e9bec.tar.lz UXP-a9dc528a4a7b0aaad5308aff70963485ec3e9bec.tar.xz UXP-a9dc528a4a7b0aaad5308aff70963485ec3e9bec.zip |
Fix nits.
I hope this addresses everything.
Diffstat (limited to 'xpcom/reflect/xptcall/md')
-rw-r--r-- | xpcom/reflect/xptcall/md/unix/xptcinvoke_sparc_solaris.cpp | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/xpcom/reflect/xptcall/md/unix/xptcinvoke_sparc_solaris.cpp b/xpcom/reflect/xptcall/md/unix/xptcinvoke_sparc_solaris.cpp index 126ef1dad..c1b679779 100644 --- a/xpcom/reflect/xptcall/md/unix/xptcinvoke_sparc_solaris.cpp +++ b/xpcom/reflect/xptcall/md/unix/xptcinvoke_sparc_solaris.cpp @@ -104,22 +104,32 @@ invoke_copy_to_stack(uint32_t* d, uint32_t paramCount, nsXPTCVariant* s) } switch(l_s->type) { - case nsXPTType::T_I8 : *((int32_t*) l_d) = l_s->val.i8; break; - case nsXPTType::T_I16 : *((int32_t*) l_d) = l_s->val.i16; break; - case nsXPTType::T_I32 : *((int32_t*) l_d) = l_s->val.i32; break; + case nsXPTType::T_I8 : *((int32_t*) l_d) = l_s->val.i8; + break; + case nsXPTType::T_I16 : *((int32_t*) l_d) = l_s->val.i16; + break; + case nsXPTType::T_I32 : *((int32_t*) l_d) = l_s->val.i32; + break; case nsXPTType::T_I64 : case nsXPTType::T_U64 : case nsXPTType::T_DOUBLE : *((uint32_t*) l_d++) = ((DU *)l_s)->hi; if (regCount < 5) regCount++; *((uint32_t*) l_d) = ((DU *)l_s)->lo; break; - case nsXPTType::T_U8 : *((uint32_t*) l_d) = l_s->val.u8; break; - case nsXPTType::T_U16 : *((uint32_t*) l_d) = l_s->val.u16; break; - case nsXPTType::T_U32 : *((uint32_t*) l_d) = l_s->val.u32; break; - case nsXPTType::T_FLOAT : *((float*) l_d) = l_s->val.f; break; - case nsXPTType::T_BOOL : *((uint32_t*) l_d) = l_s->val.b; break; - case nsXPTType::T_CHAR : *((uint32_t*) l_d) = l_s->val.c; break; - case nsXPTType::T_WCHAR : *((int32_t*) l_d) = l_s->val.wc; break; + case nsXPTType::T_U8 : *((uint32_t*) l_d) = l_s->val.u8; + break; + case nsXPTType::T_U16 : *((uint32_t*) l_d) = l_s->val.u16; + break; + case nsXPTType::T_U32 : *((uint32_t*) l_d) = l_s->val.u32; + break; + case nsXPTType::T_FLOAT : *((float*) l_d) = l_s->val.f; + break; + case nsXPTType::T_BOOL : *((uint32_t*) l_d) = l_s->val.b; + break; + case nsXPTType::T_CHAR : *((uint32_t*) l_d) = l_s->val.c; + break; + case nsXPTType::T_WCHAR : *((int32_t*) l_d) = l_s->val.wc; + break; default: // all the others are plain pointer types *((void**)l_d) = l_s->val.p; |