diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-08-04 23:35:13 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-08-04 23:35:13 +0200 |
| commit | 8279a357f6f35d58a4c81d84c3c44a7da687b170 (patch) | |
| tree | 20e4dae3824bb485e34a43e44f6e468ed0afffd0 /src/vec3.cpp | |
| parent | 969dd101a08997dc318207b6994201d5161d0bd3 (diff) | |
Fix most warnings
Diffstat (limited to 'src/vec3.cpp')
| -rw-r--r-- | src/vec3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vec3.cpp b/src/vec3.cpp index 43431fc..1bd068f 100644 --- a/src/vec3.cpp +++ b/src/vec3.cpp @@ -44,7 +44,7 @@ vec3 &vec3::operator/=(float numerator) { return *this; } -float vec3::operator[](int axis) { +float vec3::operator[](const int axis) { if (axis > 2) { return std::numeric_limits<float>::infinity(); } return v[axis]; |
