diff --git a/misc.h b/misc.h index 29b07209..14b0dd19 100644 --- a/misc.h +++ b/misc.h @@ -1294,7 +1294,7 @@ template<> inline void SecureWipeBuffer(word64 *buf, size_t n) # ifdef __GNUC__ asm volatile("rep stosq" : "+c"(n), "+D"(p) : "a"(0) : "memory"); # else - __stosq(reinterpret_cast(reinterpret_cast(p)), 0, n); + __stosq(const_cast(p), 0, n); # endif #else SecureWipeBuffer(reinterpret_cast(buf), 2*n);