Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: vegorov-rbx <[email protected]>
  • Loading branch information
zeux and vegorov-rbx authored Nov 28, 2023
1 parent a66adcf commit 6874b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VM/src/lvmexecute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,7 @@ static void luau_execute(lua_State* L)
}
else if (ttisvector(rb))
{
const float* vb = rb->value.v;
const float* vb = vvalue(rb);
float nc = cast_to(float, nvalue(kv));
setvvalue(ra, vb[0] / nc, vb[1] / nc, vb[2] / nc, vb[3] / nc);
VM_NEXT();
Expand Down Expand Up @@ -2734,7 +2734,7 @@ static void luau_execute(lua_State* L)
else if (ttisvector(rc))
{
float nb = cast_to(float, nvalue(kv));
const float* vc = rc->value.v;
const float* vc = vvalue(rc);
setvvalue(ra, nb / vc[0], nb / vc[1], nb / vc[2], nb / vc[3]);
VM_NEXT();
}
Expand Down

0 comments on commit 6874b37

Please sign in to comment.