From 5bc1d4bea295695b193cab61b92ba89bcbe169cd Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 17 Jan 2024 10:23:13 +0000 Subject: 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 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 --- bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bridges') 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( pRegisterReturn ) = *reinterpret_cast( &data.rax ); break; case typelib_TypeClass_FLOAT: + *static_cast(pRegisterReturn) = *reinterpret_cast(&data.xmm0); + break; case typelib_TypeClass_DOUBLE: *static_cast( pRegisterReturn ) = data.xmm0; break; -- cgit