summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2016-02-21 08:24:49 -0800
committerNorbert Thiebaud <nthiebaud@gmail.com>2016-02-22 02:32:13 +0000
commit369b33903ac1870275af07451e7377ef057e1276 (patch)
treeb4317e34828629024963e8b6db3873b5761358b2 /cppu
parent8d17a0f71b1fe6d90fe4ef5decd83f1285e2cb13 (diff)
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>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/uno/destr.hxx2
-rw-r--r--cppu/source/uno/prim.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/cppu/source/uno/destr.hxx b/cppu/source/uno/destr.hxx
index 299cca3f3750..580620814b93 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 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