diff options
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Base/SafeAllocator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Base/SafeAllocator.h b/Swiften/Base/SafeAllocator.h index fc74234..9f9dd42 100644 --- a/Swiften/Base/SafeAllocator.h +++ b/Swiften/Base/SafeAllocator.h @@ -23,7 +23,7 @@ namespace Swift { ~SafeAllocator() throw() {} void deallocate (T* p, size_t num) { - std::fill(p, p + num, 0); + std::fill(reinterpret_cast<char*>(p), reinterpret_cast<char*>(p + num), 0); std::allocator<T>::deallocate(p, num); } }; |