Skip to content

Commit

Permalink
Fix warning in StaticVector
Browse files Browse the repository at this point in the history
  • Loading branch information
Oipo committed Aug 24, 2024
1 parent 0f85870 commit 9049e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ichor/stl/StaticVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ namespace Ichor {
assert(n >= 0);
assert(_size + (std::size_t)n <= N);
auto position = iterator{const_cast<pointer>(const_position.operator->())};
_size += n;
_size += static_cast<decltype(_size)>(n);
if constexpr (std::is_move_constructible_v<T>) {
std::move_backward(position, end() - n, end());
} else {
Expand Down

0 comments on commit 9049e8a

Please sign in to comment.