Fix compiler warning

This commit is contained in:
Kovid Goyal 2024-05-20 08:15:12 +05:30
parent a3d3d8d33e
commit 98a09d9bdf
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -54,7 +54,7 @@ private:
T *first_available; T *first_available;
public: public:
Pool<T>(int size) : nodes(size), first_available(nodes.data()) { Pool(int size) : nodes(size), first_available(nodes.data()) {
for (int i = 0; i < size - 1; i++) this->nodes[i].next_available_in_pool = &this->nodes[i+1]; for (int i = 0; i < size - 1; i++) this->nodes[i].next_available_in_pool = &this->nodes[i+1];
} }