diff --git a/tinyxml2.h b/tinyxml2.h index 9cd3b55..f20304f 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -305,7 +305,7 @@ private: if ( cap > _allocated ) { TIXMLASSERT( cap <= INT_MAX / 2 ); const int newAllocated = cap * 2; - T* newMem = new T[static_cast(newAllocated)]; + T* newMem = new T[static_cast(newAllocated)]; TIXMLASSERT( newAllocated >= _size ); memcpy( newMem, _mem, sizeof(T)*static_cast(_size) ); // warning: not using constructors, only works for PODs if ( _mem != _pool ) {