bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 5bc1d4bea295695b193cab61b92ba89bcbe169cd
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Wed Jan 17 10:23:13 2024 +0000
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Wed Jan 17 16:45:01 2024 +0100

    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 <sberg...@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.bergm...@allotropia.de>

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;

Reply via email to