Bug 1325771 - xpcom: Fix type of result in NS_InvokeByIndex on Linux/m68k. r?froydnj
--- 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"