mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Apply suggestions from code review
Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
parent
a66adcf5e9
commit
6874b379ab
1 changed files with 2 additions and 2 deletions
|
@ -1858,7 +1858,7 @@ reentry:
|
||||||
}
|
}
|
||||||
else if (ttisvector(rb))
|
else if (ttisvector(rb))
|
||||||
{
|
{
|
||||||
const float* vb = rb->value.v;
|
const float* vb = vvalue(rb);
|
||||||
float nc = cast_to(float, nvalue(kv));
|
float nc = cast_to(float, nvalue(kv));
|
||||||
setvvalue(ra, vb[0] / nc, vb[1] / nc, vb[2] / nc, vb[3] / nc);
|
setvvalue(ra, vb[0] / nc, vb[1] / nc, vb[2] / nc, vb[3] / nc);
|
||||||
VM_NEXT();
|
VM_NEXT();
|
||||||
|
@ -2734,7 +2734,7 @@ reentry:
|
||||||
else if (ttisvector(rc))
|
else if (ttisvector(rc))
|
||||||
{
|
{
|
||||||
float nb = cast_to(float, nvalue(kv));
|
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]);
|
setvvalue(ra, nb / vc[0], nb / vc[1], nb / vc[2], nb / vc[3]);
|
||||||
VM_NEXT();
|
VM_NEXT();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue