diff options
Diffstat (limited to 'lcode.c')
-rw-r--r-- | lcode.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -430,7 +430,7 @@ static int codesJ (FuncState *fs, OpCode o, int sj, int k) { | |||
430 | /* | 430 | /* |
431 | ** Emit an "extra argument" instruction (format 'iAx') | 431 | ** Emit an "extra argument" instruction (format 'iAx') |
432 | */ | 432 | */ |
433 | static int codeextraarg (FuncState *fs, int a) { | 433 | int luaK_codeextraarg (FuncState *fs, int a) { |
434 | lua_assert(a <= MAXARG_Ax); | 434 | lua_assert(a <= MAXARG_Ax); |
435 | return luaK_code(fs, CREATE_Ax(OP_EXTRAARG, a)); | 435 | return luaK_code(fs, CREATE_Ax(OP_EXTRAARG, a)); |
436 | } | 436 | } |
@@ -446,7 +446,7 @@ static int luaK_codek (FuncState *fs, int reg, int k) { | |||
446 | return luaK_codeABx(fs, OP_LOADK, reg, k); | 446 | return luaK_codeABx(fs, OP_LOADK, reg, k); |
447 | else { | 447 | else { |
448 | int p = luaK_codeABx(fs, OP_LOADKX, reg, 0); | 448 | int p = luaK_codeABx(fs, OP_LOADKX, reg, 0); |
449 | codeextraarg(fs, k); | 449 | luaK_codeextraarg(fs, k); |
450 | return p; | 450 | return p; |
451 | } | 451 | } |
452 | } | 452 | } |
@@ -1687,7 +1687,7 @@ void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) { | |||
1687 | luaK_codeABC(fs, OP_SETLIST, base, b, c); | 1687 | luaK_codeABC(fs, OP_SETLIST, base, b, c); |
1688 | else if (c <= MAXARG_Ax) { | 1688 | else if (c <= MAXARG_Ax) { |
1689 | luaK_codeABC(fs, OP_SETLIST, base, b, 0); | 1689 | luaK_codeABC(fs, OP_SETLIST, base, b, 0); |
1690 | codeextraarg(fs, c); | 1690 | luaK_codeextraarg(fs, c); |
1691 | } | 1691 | } |
1692 | else | 1692 | else |
1693 | luaX_syntaxerror(fs->ls, "constructor too long"); | 1693 | luaX_syntaxerror(fs->ls, "constructor too long"); |