From af824f7b078e2603b96b557e9623830350fd4d15 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud <nthiebaud@gmail.com> Date: Sun, 21 Feb 2016 08:24:49 -0800 Subject: WaE 0xdeadbeaf 32 bits litteral casting to 64 bits pointer Change-Id: I9769a1d9707cc958329f1c05ccbed780983faf14 Reviewed-on: https://gerrit.libreoffice.org/22600 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> (cherry picked from commit 369b33903ac1870275af07451e7377ef057e1276) Signed-off-by: Michael Stahl <mstahl@redhat.com> --- cppu/source/uno/destr.hxx | 2 +- cppu/source/uno/prim.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cppu/source/uno/destr.hxx b/cppu/source/uno/destr.hxx index 1bf9313801d0..5ae29aedc6af 100644 --- a/cppu/source/uno/destr.hxx +++ b/cppu/source/uno/destr.hxx @@ -133,7 +133,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 cf66016353cd..03bae2abb334 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 -- cgit