Fix incorrect comment in Bytecode.h (#1315)

The description of SUBRK/DIVRK is out of sync with the VM code.

Comment:
```cpp
// SUBRK, DIVRK: compute arithmetic operation between the constant and a source register and put the result into target register
// A: target register
// B: source register
// C: constant table index (0..255); must refer to a number
LOP_SUBRK,
LOP_DIVRK,
```
VM snippet:
```cpp
VM_CASE(LOP_DIVRK)
    {
        Instruction insn = *pc++;
        StkId ra = VM_REG(LUAU_INSN_A(insn));
        TValue* kv = VM_KV(LUAU_INSN_B(insn));
        StkId rc = VM_REG(LUAU_INSN_C(insn));
        ...
```
This commit is contained in:
mttsner 2024-07-10 02:00:17 +03:00 committed by GitHub
parent f5a2c5d55e
commit 6bfc38e61a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -360,8 +360,8 @@ enum LuauOpcode
// SUBRK, DIVRK: compute arithmetic operation between the constant and a source register and put the result into target register // SUBRK, DIVRK: compute arithmetic operation between the constant and a source register and put the result into target register
// A: target register // A: target register
// B: source register // B: constant table index (0..255); must refer to a number
// C: constant table index (0..255); must refer to a number // C: source register
LOP_SUBRK, LOP_SUBRK,
LOP_DIVRK, LOP_DIVRK,