summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-17 10:23:13 +0000
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-01-17 16:45:01 +0100
commit5bc1d4bea295695b193cab61b92ba89bcbe169cd (patch)
tree87f19b5f08be7fa60ce125d006986a6a0d60720f /bridges
parentf4647575a1e80169ba6f363fff72087d22165780 (diff)
merge float fix from gcc3_linux_x86-64 to gcc3_macosx_x86-64
presumably we need the same fix there as done with: commit 3bcc14b4e2b226f97e937ca7a152218f8276ee39 Author: Stephan Bergmann <sbergman@redhat.com> Date: Thu Aug 3 13:21:44 2023 +0200 Fix handling of float vs. double values Change-Id: I7d6420dc954cdc320c9478172878e2a272ab2745 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162193 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx
index 83a9ca81d8b2..84718dd45911 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx
@@ -153,6 +153,8 @@ void CPPU_CURRENT_NAMESPACE::callVirtualMethod(
*static_cast<sal_uInt8 *>( pRegisterReturn ) = *reinterpret_cast<sal_uInt8 *>( &data.rax );
break;
case typelib_TypeClass_FLOAT:
+ *static_cast<float *>(pRegisterReturn) = *reinterpret_cast<float *>(&data.xmm0);
+ break;
case typelib_TypeClass_DOUBLE:
*static_cast<double *>( pRegisterReturn ) = data.xmm0;
break;