Skip to content

Commit

Permalink
fix: comparison of integer expressions of different signedness
Browse files Browse the repository at this point in the history
  • Loading branch information
Jabolol committed May 6, 2024
1 parent 62110f2 commit 7c45245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/utils/VecN.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ namespace Raytracer::Utils
return v;
}

T operator[](int i) const
T operator[](std::size_t i) const
{
if (i >= N) {
throw std::out_of_range("Index out of bounds");
}
return e[i];
}

T &operator[](int i)
T &operator[](std::size_t i)
{
if (i >= N) {
throw std::out_of_range("Index out of bounds");
Expand Down

0 comments on commit 7c45245

Please sign in to comment.