summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/alloc_cache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/alloc_cache.cxx b/sal/rtl/alloc_cache.cxx
index 578ce33f19ac..50e2961912a4 100644
--- a/sal/rtl/alloc_cache.cxx
+++ b/sal/rtl/alloc_cache.cxx
@@ -1318,7 +1318,7 @@ void SAL_CALL
rtl_secureZeroMemory (void *Ptr, sal_Size Bytes) SAL_THROW_EXTERN_C()
{
//currently glibc doesn't implement memset_s
- volatile char *p = reinterpret_cast<volatile char*>(Ptr);
+ volatile char *p = static_cast<volatile char*>(Ptr);
while (Bytes--)
*p++ = 0;
}