summaryrefslogtreecommitdiff
path: root/src/lcode.c
diff options
context:
space:
mode:
authorPeter Drahoš <drahosp@gmail.com>2015-12-16 00:14:02 +0100
committerPeter Drahoš <drahosp@gmail.com>2015-12-16 00:14:02 +0100
commitfcdc5efb13f0d6c03d2868b7476b73e63a291ed3 (patch)
tree5bd844d3ae48e03d1aac8ebef3dd6209549d246e /src/lcode.c
parent94f9f6c6ed0fbc1b49ab4a896d6a587ce8815e36 (diff)
downloadlua-5.3.tar.gz
Updated to lua-5.3.25.3.2lua-5.3
Diffstat (limited to 'src/lcode.c')
-rw-r--r--src/lcode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lcode.c b/src/lcode.c
index d6f0fcd..7c6918f 100644
--- a/src/lcode.c
+++ b/src/lcode.c
@@ -1,5 +1,5 @@
/*
-** $Id: lcode.c,v 2.101 2015/04/29 18:24:11 roberto Exp $
+** $Id: lcode.c,v 2.103 2015/11/19 19:16:22 roberto Exp $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
@@ -37,7 +37,7 @@
static int tonumeral(expdesc *e, TValue *v) {
- if (e->t != NO_JUMP || e->f != NO_JUMP)
+ if (hasjumps(e))
return 0; /* not a numeral */
switch (e->k) {
case VKINT:
@@ -816,7 +816,7 @@ static void codeexpval (FuncState *fs, OpCode op,
freeexp(fs, e1);
}
e1->u.info = luaK_codeABC(fs, op, 0, o1, o2); /* generate opcode */
- e1->k = VRELOCABLE; /* all those operations are relocable */
+ e1->k = VRELOCABLE; /* all those operations are relocatable */
luaK_fixline(fs, line);
}
}