Bug 1325771 - xpcom: Fix type of result in NS_InvokeByIndex on Linux/m68k. r?froydnj draft
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Thu, 22 Dec 2016 22:14:01 +0100
changeset 458865 7838195cc8161d080ad777fc5c180a62e7ed844a
parent 458864 d320c4ba78dd92e6663cb9b100d6520e59c126fa
child 458866 bbf59739ce012fae7d223edbb002b2d4e3252fa1
push id41085
push userbmo:mh+mozilla@glandium.org
push dateWed, 11 Jan 2017 07:28:36 +0000
reviewersfroydnj
bugs1325771
milestone53.0a1
Bug 1325771 - xpcom: Fix type of result in NS_InvokeByIndex on Linux/m68k. r?froydnj
xpcom/reflect/xptcall/md/unix/xptcinvoke_linux_m68k.cpp
--- a/xpcom/reflect/xptcall/md/unix/xptcinvoke_linux_m68k.cpp
+++ b/xpcom/reflect/xptcall/md/unix/xptcinvoke_linux_m68k.cpp
@@ -95,17 +95,18 @@ extern "C" {
         }
     }
 }
 
 EXPORT_XPCOM_API(nsresult)
 NS_InvokeByIndex(nsISupports* that, uint32_t methodIndex,
                    uint32_t paramCount, nsXPTCVariant* params)
 {
-    uint32_t result, n;
+    nsresult result;
+    uint32_t n;
 
     n = invoke_count_words(paramCount, params) * 4;
 
  __asm__ __volatile__(
     "subl  %5, %%sp\n\t"      /* make room for params */
     "movel %4, %%sp@-\n\t"
     "movel %3, %%sp@-\n\t"
     "pea   %%sp@(8)\n\t"