small bug (from revision 2.80): LUA_OP* constants are not from
enumeration 'Opcode' (they are integers)
This commit is contained in:
4
lcode.c
4
lcode.c
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lcode.c,v 2.82 2014/03/06 16:15:18 roberto Exp roberto $
|
** $Id: lcode.c,v 2.83 2014/03/07 16:19:00 roberto Exp roberto $
|
||||||
** Code generator for Lua
|
** Code generator for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -753,7 +753,7 @@ void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) {
|
|||||||
/*
|
/*
|
||||||
** return false if folding can raise an error
|
** return false if folding can raise an error
|
||||||
*/
|
*/
|
||||||
static int validop (OpCode op, TValue *v1, TValue *v2) {
|
static int validop (int op, TValue *v1, TValue *v2) {
|
||||||
lua_Number a, b;
|
lua_Number a, b;
|
||||||
lua_Integer i;
|
lua_Integer i;
|
||||||
cast_void(a); cast_void(b); /* macro may not use its arguments */
|
cast_void(a); cast_void(b); /* macro may not use its arguments */
|
||||||
|
|||||||
Reference in New Issue
Block a user