fix more -Wsign-conversion warnings

This commit is contained in:
Juraj
2022-06-07 07:53:54 +02:00
parent 07f497d6d8
commit beb2b2f82d

View File

@@ -317,7 +317,7 @@ private:
}
T* _mem;
T _pool[INITIAL_SIZE];
T _pool[static_cast<size_t>(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<size_t>(ITEM_SIZE)];
};
struct Block {
Item items[ITEMS_PER_BLOCK];