浏览代码

small bug (from revision 2.80): LUA_OP* constants are not from
enumeration 'Opcode' (they are integers)

Roberto Ierusalimschy 11 年之前
父节点
当前提交
2aff75f58e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lcode.c

+ 2 - 2
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
 ** 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
 */
-static int validop (OpCode op, TValue *v1, TValue *v2) {
+static int validop (int op, TValue *v1, TValue *v2) {
   lua_Number a, b;
   lua_Integer i;
   cast_void(a); cast_void(b);  /* macro may not use its arguments */