From 8279a357f6f35d58a4c81d84c3c44a7da687b170 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Thu, 4 Aug 2022 23:35:13 +0200 Subject: Fix most warnings --- src/vec3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vec3.cpp') 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::infinity(); } return v[axis]; -- cgit v1.3