summaryrefslogtreecommitdiff
path: root/external/mit/lua/dist/src/lcode.c
diff options
context:
space:
mode:
authorsalazar <salazar@NetBSD.org>2016-09-08 02:57:32 +0000
committersalazar <salazar@NetBSD.org>2016-09-08 02:57:32 +0000
commit8465f349151d4bdd7e16d4b40cd247add7fec5c8 (patch)
treea7d08ba428eb892eb6ac63f7c623b23025053c8a /external/mit/lua/dist/src/lcode.c
parent2b003dd26a21b4eba20534aa1e0ad1bf249ac1cf (diff)
fix bug 3 (for Lua.5.3.3) reported on www.lua.org/bugs.html
Diffstat (limited to 'external/mit/lua/dist/src/lcode.c')
-rw-r--r--external/mit/lua/dist/src/lcode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/external/mit/lua/dist/src/lcode.c b/external/mit/lua/dist/src/lcode.c
index 90ff36b1d29..92c4fc1b6dc 100644
--- a/external/mit/lua/dist/src/lcode.c
+++ b/external/mit/lua/dist/src/lcode.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lcode.c,v 1.6 2016/09/08 02:21:31 salazar Exp $ */
+/* $NetBSD: lcode.c,v 1.7 2016/09/08 02:57:32 salazar Exp $ */
/*
** Id: lcode.c,v 2.109 2016/05/13 19:09:21 roberto Exp
@@ -1046,8 +1046,8 @@ static void codeunexpval (FuncState *fs, OpCode op, expdesc *e, int line) {
*/
static void codebinexpval (FuncState *fs, OpCode op,
expdesc *e1, expdesc *e2, int line) {
- int rk1 = luaK_exp2RK(fs, e1); /* both operands are "RK" */
- int rk2 = luaK_exp2RK(fs, e2);
+ int rk2 = luaK_exp2RK(fs, e2); /* both operands are "RK" */
+ int rk1 = luaK_exp2RK(fs, e1);
freeexps(fs, e1, e2);
e1->u.info = luaK_codeABC(fs, op, 0, rk1, rk2); /* generate opcode */
e1->k = VRELOCABLE; /* all those operations are relocatable */