[Libreoffice-commits] core.git: cppu/source

Norbert Thiebaud nthiebaud at gmail.com
Mon Feb 22 02:32:40 UTC 2016


 cppu/source/uno/destr.hxx |    2 +-
 cppu/source/uno/prim.hxx  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 369b33903ac1870275af07451e7377ef057e1276
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sun Feb 21 08:24:49 2016 -0800

    WaE 0xdeadbeaf 32 bits litteral casting to 64 bits pointer
    
    Change-Id: I9769a1d9707cc958329f1c05ccbed780983faf14
    Reviewed-on: https://gerrit.libreoffice.org/22600
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/cppu/source/uno/destr.hxx b/cppu/source/uno/destr.hxx
index 299cca3..5806208 100644
--- a/cppu/source/uno/destr.hxx
+++ b/cppu/source/uno/destr.hxx
@@ -132,7 +132,7 @@ inline void _destructAny(
         break;
     }
 #if OSL_DEBUG_LEVEL > 0
-    pAny->pData = reinterpret_cast<void *>(0xdeadbeef);
+    pAny->pData = reinterpret_cast<void *>((uintptr_t)0xdeadbeef);
 #endif
 
     ::typelib_typedescriptionreference_release( pType );
diff --git a/cppu/source/uno/prim.hxx b/cppu/source/uno/prim.hxx
index cf66016..03bae2a 100644
--- a/cppu/source/uno/prim.hxx
+++ b/cppu/source/uno/prim.hxx
@@ -133,7 +133,7 @@ inline typelib_TypeDescriptionReference * _getVoidType()
 inline void CONSTRUCT_EMPTY_ANY(uno_Any * pAny) {
     pAny->pType = _getVoidType();
 #if OSL_DEBUG_LEVEL > 0
-    pAny->pData = reinterpret_cast<void *>(0xdeadbeef);
+    pAny->pData = reinterpret_cast<void *>((uintptr_t)0xdeadbeef);
 #else
     pAny->pData = pAny;
 #endif


More information about the Libreoffice-commits mailing list