summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-19 20:11:21 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-19 20:13:06 (GMT)
commitdcda69b902744154d1e4ed67c89bde8bb6fdfcb9 (patch)
tree7491befda7a7eabecd86ab4ebb73d7239b38f934 /Swiften
parentcda3b7244a204fb1213d377023f1d71ba5e37d4e (diff)
downloadswift-contrib-dcda69b902744154d1e4ed67c89bde8bb6fdfcb9.zip
swift-contrib-dcda69b902744154d1e4ed67c89bde8bb6fdfcb9.tar.bz2
Fixed SafeAllocator compilation on Windows.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Base/SafeAllocator.h2
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);
}
};