Fix for __newindex metamethod.

This commit is contained in:
Michael Munday 2017-01-04 15:54:21 -05:00
parent 80191dcab7
commit faef0fb092

View File

@ -791,7 +791,7 @@ static void build_subroutines(BuildCtx *ctx)
|3: // Call __newindex metamethod. |3: // Call __newindex metamethod.
| // BASE = base, L->top = new base, stack = cont/func/t/k/(v) | // BASE = base, L->top = new base, stack = cont/func/t/k/(v)
| lg RA, L:RB->top | lg RA, L:RB->top
| stg PC, -24(PC) // [cont|PC] | stg PC, -24(RA) // [cont|PC]
| llgc RC, PC_RA | llgc RC, PC_RA
| // Copy value to third argument. | // Copy value to third argument.
| sllg RB, RC, 3(r0) | sllg RB, RC, 3(r0)