diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-03-09 16:21:34 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-03-09 16:21:34 -0300 |
commit | 2aff75f58eb202dbf245787f2ae98c43124724f4 (patch) | |
tree | bc7ee212c2f18aac025969c2244ddf187db242f6 | |
parent | cd12410195e092f966db2c9e524c2cd5fd09fa1a (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | */ |
756 | static int validop (OpCode op, TValue *v1, TValue *v2) { | 756 | static 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 */ |