mirror of
https://github.com/lua/lua
synced 2025-04-01 18:42:52 +03:00
avoid warnings (Instruction' may not fit into an
int')
This commit is contained in:
parent
01b303c87e
commit
17149b7d43
4
ldebug.c
4
ldebug.c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: ldebug.c,v 1.149 2003/03/18 12:50:04 roberto Exp roberto $
|
||||
** $Id: ldebug.c,v 1.150 2003/03/19 21:24:04 roberto Exp roberto $
|
||||
** Debug Interface
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -436,7 +436,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) {
|
||||
|
||||
|
||||
int luaG_checkcode (const Proto *pt) {
|
||||
return luaG_symbexec(pt, pt->sizecode, NO_REG);
|
||||
return (luaG_symbexec(pt, pt->sizecode, NO_REG) != 0);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user