mirror of
https://github.com/lua/lua
synced 2024-11-26 06:39:41 +03:00
cast from 'bool' to 'int' (for C++)
This commit is contained in:
parent
138be5b843
commit
c82087b8dd
4
lvm.c
4
lvm.c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lvm.c,v 2.145 2011/11/28 17:25:16 roberto Exp roberto $
|
||||
** $Id: lvm.c,v 2.146 2011/11/29 15:54:38 roberto Exp roberto $
|
||||
** Lua virtual machine
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -662,7 +662,7 @@ void luaV_execute (lua_State *L) {
|
||||
TValue *rb = RKB(i);
|
||||
TValue *rc = RKC(i);
|
||||
Protect(
|
||||
if (equalobj(L, rb, rc) != GETARG_A(i))
|
||||
if (cast_int(equalobj(L, rb, rc)) != GETARG_A(i))
|
||||
ci->u.l.savedpc++;
|
||||
else
|
||||
donextjump(ci);
|
||||
|
Loading…
Reference in New Issue
Block a user