Skip to content

Commit

Permalink
safe comparison for assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanskies committed Dec 2, 2023
1 parent 73084ec commit 859d861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core/source/sprite_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ namespace hades
// fix indicies
for (auto& s : _ids)
{
assert(s.index != index);
assert(std::cmp_not_equal(s.index, index));
if (std::cmp_greater(s.index, index))
--s.index;
}
Expand Down

0 comments on commit 859d861

Please sign in to comment.