Skip to content

Commit

Permalink
Fix hardcoded vector size in hashvec
Browse files Browse the repository at this point in the history
Co-authored-by: Arseny Kapoulkine <arseny.kapoulkine@gmail.com>
  • Loading branch information
petrihakkinen and zeux committed Nov 18, 2021
1 parent d9c0977 commit 1d2d35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VM/src/ltable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static LuaNode* hashnum(const Table* t, double n)

static LuaNode* hashvec(const Table* t, const float* v)
{
unsigned int i[4];
unsigned int i[LUA_VECTOR_SIZE];
memcpy(i, v, sizeof(i));

// convert -0 to 0 to make sure they hash to the same value
Expand Down

0 comments on commit 1d2d35c

Please sign in to comment.