Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
UnrealKaraulov committed Nov 17, 2024
1 parent f0750a2 commit d2aff88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/vectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ struct vec3
}


float& operator [] (ptrdiff_t i)
float& operator [] (size_t i)
{
switch (i)
{
Expand All @@ -149,7 +149,7 @@ struct vec3
return z;
}

float operator [] (ptrdiff_t i) const
float operator [] (size_t i) const
{
switch (i)
{
Expand Down Expand Up @@ -311,7 +311,7 @@ struct vec4
std::string toKeyvalueString(bool truncate = false, const std::string& suffix_x = " ", const std::string& suffix_y = " ", const std::string& suffix_z = " "
, const std::string& suffix_w = "");

float operator [] (ptrdiff_t i) const
float operator [] (size_t i) const
{
switch (i)
{
Expand All @@ -325,7 +325,7 @@ struct vec4
return w;
}

float& operator [] (ptrdiff_t i)
float& operator [] (size_t i)
{
switch (i)
{
Expand Down

0 comments on commit d2aff88

Please sign in to comment.