diff --git a/tinyxml2.h b/tinyxml2.h index 796f2b0..f4503fd 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -370,7 +370,7 @@ public: return; } --_currentAllocs; - Chunk* chunk = (Chunk*)mem; + Chunk* chunk = static_cast( mem ); #ifdef DEBUG memset( chunk, 0xfe, sizeof(Chunk) ); #endif