Apply suggestions from code review

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
Arseny Kapoulkine 2023-11-28 07:20:14 -08:00 committed by GitHub
parent a66adcf5e9
commit 6874b379ab
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1858,7 +1858,7 @@ reentry:
}
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();
@ -2734,7 +2734,7 @@ reentry:
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();
}