From beb2b2f82dc8b2c99fd67cc1d026f58ea7c8f677 Mon Sep 17 00:00:00 2001 From: Juraj <37395233+JurajX@users.noreply.github.com> Date: Tue, 7 Jun 2022 07:53:54 +0200 Subject: [PATCH] fix more -Wsign-conversion warnings --- tinyxml2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyxml2.h b/tinyxml2.h index 6107dd4..9cd3b55 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -317,7 +317,7 @@ private: } T* _mem; - T _pool[INITIAL_SIZE]; + T _pool[static_cast(INITIAL_SIZE)]; int _allocated; // objects allocated int _size; // number objects in use }; @@ -443,7 +443,7 @@ private: union Item { Item* next; - char itemData[ITEM_SIZE]; + char itemData[static_cast(ITEM_SIZE)]; }; struct Block { Item items[ITEMS_PER_BLOCK];