summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-08-28 16:10:11 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-08-28 09:42:50 -0500
commit5b189dd7e075af80f3d4ba366a46561562854ba7 (patch)
treecc88297019e1e334bdeb9fde42bea22ea8bbd13f /bridges
parent6df6eb9c4d462532271cd800537830a68221242a (diff)
cast arg to the right type
According to desc., typelib_TypeDescription can be safely used where typelib_TypeDescriptionReference is expected. Change-Id: Ibc3effd7e2894ba6ff738503e747f5157c146454 (cherry picked from commit ef8b94ab0e689851871f9783d4b1f3724177cf3a) Reviewed-on: https://gerrit.libreoffice.org/11177 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx b/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx
index c958de519028..20e8b5a50878 100644
--- a/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx
@@ -233,7 +233,7 @@ static void callVirtualMethod(void * pThis, sal_uInt32 nVtableIndex,
"fmr %0, 1\n\t"
: "=f" (dret), "=r" (r3), "=r" (r4) : );
- MapReturn(r3, r4, dret, pReturnTypeDescr, pRegisterReturn);
+ MapReturn(r3, r4, dret, reinterpret_cast<typelib_TypeDescriptionReference *>(pReturnTypeDescr), pRegisterReturn);
}
// Macros for easier insertion of values to registers or stack