lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 2aff75f58eb202dbf245787f2ae98c43124724f4
parent cd12410195e092f966db2c9e524c2cd5fd09fa1a
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Sun,  9 Mar 2014 16:21:09 -0300

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

Diffstat:
Mlcode.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lcode.c b/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 */