mirror of https://github.com/rusefi/lua.git
detail (avoid being picky about conversion from 'unsigned char'
to 'int')
This commit is contained in:
parent
6625cbecd1
commit
233eac4d3a
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lparser.c,v 2.127 2012/05/08 13:53:33 roberto Exp roberto $
|
||||
** $Id: lparser.c,v 2.128 2012/05/20 14:51:23 roberto Exp roberto $
|
||||
** Lua Parser
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
@ -245,7 +245,7 @@ static int newupvalue (FuncState *fs, TString *name, expdesc *v) {
|
|||
|
||||
static int searchvar (FuncState *fs, TString *n) {
|
||||
int i;
|
||||
for (i=fs->nactvar-1; i >= 0; i--) {
|
||||
for (i = cast_int(fs->nactvar) - 1; i >= 0; i--) {
|
||||
if (luaS_eqstr(n, getlocvar(fs, i)->varname))
|
||||
return i;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue