From dcda69b902744154d1e4ed67c89bde8bb6fdfcb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Thu, 19 May 2011 22:11:21 +0200 Subject: Fixed SafeAllocator compilation on Windows. 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); } }; -- cgit v0.10.2-6-g49f6