From 233eac4d3a5ef126ce77a93fee52f5b4eb789969 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 6 Aug 2012 10:36:34 -0300 Subject: [PATCH] detail (avoid being picky about conversion from 'unsigned char' to 'int') --- lparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lparser.c b/lparser.c index 87a1dab4..ef3eedf8 100644 --- a/lparser.c +++ b/lparser.c @@ -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; }