From 8fd6cc6d2d2db158af5e066b761aededc05a17c2 Mon Sep 17 00:00:00 2001 From: Juraj <37395233+JurajX@users.noreply.github.com> Date: Tue, 7 Jun 2022 08:07:33 +0200 Subject: [PATCH] fix gcc sizetype complaint --- tinyxml2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {