diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-04-28 10:31:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-04-28 10:31:06 -0300 |
commit | 17149b7d43480726adc7ec5f885762b487565a7e (patch) | |
tree | a48441fea0c7a0b49374960c66a2da68fc1d6eb9 /ldebug.c | |
parent | 01b303c87e4b3d3c9daed6312658bb73638498a6 (diff) | |
download | lua-17149b7d43480726adc7ec5f885762b487565a7e.tar.gz lua-17149b7d43480726adc7ec5f885762b487565a7e.tar.bz2 lua-17149b7d43480726adc7ec5f885762b487565a7e.zip |
avoid warnings (`Instruction' may not fit into an `int')
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.149 2003/03/18 12:50:04 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.150 2003/03/19 21:24:04 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -436,7 +436,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) { | |||
436 | 436 | ||
437 | 437 | ||
438 | int luaG_checkcode (const Proto *pt) { | 438 | int luaG_checkcode (const Proto *pt) { |
439 | return luaG_symbexec(pt, pt->sizecode, NO_REG); | 439 | return (luaG_symbexec(pt, pt->sizecode, NO_REG) != 0); |
440 | } | 440 | } |
441 | 441 | ||
442 | 442 | ||