Skip to content

Commit

Permalink
Fix bug in StaticPool.hxx
Browse files Browse the repository at this point in the history
Incorrect handling when pool is empty
  • Loading branch information
dziegel authored Oct 7, 2024
1 parent cfaee98 commit da5108c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/cpp_event_framework/StaticPool.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ public:
{
last_->next = ptr;
}
last_ = ptr;
else
{
last_ = ptr;
}

fill_level_++;
assert(FillLevel() <= NumElements);
Expand Down

0 comments on commit da5108c

Please sign in to comment.