aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lcode.c b/lcode.c
index 6d26bd5c..0c505ba7 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 2.81 2014/03/06 13:58:28 roberto Exp roberto $ 2** $Id: lcode.c,v 2.82 2014/03/06 16:15:18 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -756,8 +756,9 @@ void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) {
756static int validop (OpCode op, TValue *v1, TValue *v2) { 756static int validop (OpCode op, TValue *v1, TValue *v2) {
757 lua_Number a, b; 757 lua_Number a, b;
758 lua_Integer i; 758 lua_Integer i;
759 (void)a; (void)b; /* macro may not use its arguments */ 759 cast_void(a); cast_void(b); /* macro may not use its arguments */
760 if (luai_numinvalidop(op, (tonumber(v1, &a), a), (tonumber(v2, &b), b))) 760 if (luai_numinvalidop(op, (cast_void(tonumber(v1, &a)), a),
761 (cast_void(tonumber(v2, &b)), b)))
761 return 0; 762 return 0;
762 switch (op) { 763 switch (op) {
763 case LUA_OPIDIV: /* division by 0 and conversion errors */ 764 case LUA_OPIDIV: /* division by 0 and conversion errors */