summaryrefslogtreecommitdiff
path: root/tools/source/rc/resmgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/rc/resmgr.cxx')
-rw-r--r--tools/source/rc/resmgr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index b3cd18ebb0af..652f42006bd6 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -1234,9 +1234,9 @@ sal_uInt32 ResMgr::GetRemainSize()
return pFallbackResMgr->GetRemainSize();
const ImpRCStack& rTop = aStack[nCurStack];
- return (sal_uInt32)((sal_IntPtr)(sal_uInt8 *)rTop.pResource +
- rTop.pResource->GetLocalOff() -
- (sal_IntPtr)(sal_uInt8 *)rTop.pClassRes);
+ return (sal_uInt32)(reinterpret_cast<sal_IntPtr>(rTop.pResource) +
+ rTop.pResource->GetLocalOff() -
+ reinterpret_cast<sal_IntPtr>(rTop.pClassRes));
}
void* ResMgr::Increment( sal_uInt32 nSize )