Libmv: Cleanup, make strict compiler more happy
[blender.git] / intern / libmv / libmv / base / vector.h
index 1931fb0b1f931378b91257d13650c3dafcfdab3c..bdc4392155c188de630dd0f7f006ee2c43e1f2a6 100644 (file)
@@ -121,7 +121,7 @@ class vector {
   void reserve(unsigned int size) {
     if (size > size_) {
       T *data = static_cast<T *>(allocate(size));
-      memcpy(data, data_, sizeof(*data)*size_);
+      memcpy(static_cast<void *>(data), data_, sizeof(*data)*size_);
       allocator_.deallocate(data_, capacity_);
       data_ = data;
       capacity_ = size;