summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-17 10:23:13 +0000
committerAndras Timar <andras.timar@collabora.com>2024-01-20 19:25:18 +0100
commita533366e04467c4fbd16052c8d36f30fa5ad59e3 (patch)
treede4860ae69f1d8655938ccc9fd830e59cc3d8fd7 /bridges
parent490db6d9d8be5d9ee1217209ecbc3dae6d73c063 (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> (cherry picked from commit 5bc1d4bea295695b193cab61b92ba89bcbe169cd) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162214 Reviewed-by: Michael Stahl <michael.stahl@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;