diff options
author | David Ostrovsky <david@ostrovsky.org> | 2014-12-08 08:19:15 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-12-10 21:35:43 +0000 |
commit | c2a93a21a5a7af38ae659b9340beeb13c084eb12 (patch) | |
tree | 1f012c64766467b60c8ce4ea04dbc9929012f094 /include | |
parent | af7d374d013baad34f66989dbb9443af85bd8040 (diff) |
long is 32 bit on Windows x86_64 platform
So that this is always wrong (on this platform) to write:
reinterpret_cast<foo>(reinterpret_cast<long>(bar))
it should be:
renterpret_cast<foo>(reinterpret_cast<sal_uIntPtr>(bar))
Change-Id: Ia286246ee1616988f755c2d2054b26efacc51af0
Reviewed-on: https://gerrit.libreoffice.org/13366
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/debug.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/debug.hxx b/include/tools/debug.hxx index 6e73d2efbbb8..cdbe0817101f 100644 --- a/include/tools/debug.hxx +++ b/include/tools/debug.hxx @@ -98,7 +98,7 @@ inline sal_uIntPtr DbgIsBoldAppFont() inline void DbgSetTestSolarMutex( DbgTestSolarMutexProc pProc ) { - DbgFunc( DBG_FUNC_SETTESTSOLARMUTEX, reinterpret_cast<void*>(reinterpret_cast<long>(pProc)) ); + DbgFunc( DBG_FUNC_SETTESTSOLARMUTEX, reinterpret_cast<void*>(reinterpret_cast<sal_uIntPtr>(pProc)) ); } #define DBG_ASSERTWARNING( sCon, aWarning ) \ |