aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-03-09 16:21:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-03-09 16:21:34 -0300
commit2aff75f58eb202dbf245787f2ae98c43124724f4 (patch)
treebc7ee212c2f18aac025969c2244ddf187db242f6
parentcd12410195e092f966db2c9e524c2cd5fd09fa1a (diff)
downloadlua-2aff75f58eb202dbf245787f2ae98c43124724f4.tar.gz
lua-2aff75f58eb202dbf245787f2ae98c43124724f4.tar.bz2
lua-2aff75f58eb202dbf245787f2ae98c43124724f4.zip
small bug (from revision 2.80): LUA_OP* constants are not from
enumeration 'Opcode' (they are integers)
-rw-r--r--lcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcode.c b/lcode.c
index 0c505ba7..e6b2d98b 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 2.82 2014/03/06 16:15:18 roberto Exp roberto $ 2** $Id: lcode.c,v 2.83 2014/03/07 16:19:00 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*/
@@ -753,7 +753,7 @@ void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) {
753/* 753/*
754** return false if folding can raise an error 754** return false if folding can raise an error
755*/ 755*/
756static int validop (OpCode op, TValue *v1, TValue *v2) { 756static int validop (int op, TValue *v1, TValue *v2) {
757 lua_Number a, b; 757 lua_Number a, b;
758 lua_Integer i; 758 lua_Integer i;
759 cast_void(a); cast_void(b); /* macro may not use its arguments */ 759 cast_void(a); cast_void(b); /* macro may not use its arguments */