diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-08-06 10:36:34 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-08-06 10:36:34 -0300 |
| commit | 233eac4d3a5ef126ce77a93fee52f5b4eb789969 (patch) | |
| tree | d82cd565495eb813faaecdc247cd49726e2df1b3 | |
| parent | 6625cbecd101bfc0bc1d1034a4b527bd9a17a5de (diff) | |
| download | lua-233eac4d3a5ef126ce77a93fee52f5b4eb789969.tar.gz lua-233eac4d3a5ef126ce77a93fee52f5b4eb789969.tar.bz2 lua-233eac4d3a5ef126ce77a93fee52f5b4eb789969.zip | |
detail (avoid being picky about conversion from 'unsigned char'
to 'int')
| -rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lparser.c,v 2.127 2012/05/08 13:53:33 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.128 2012/05/20 14:51:23 roberto Exp roberto $ |
| 3 | ** Lua Parser | 3 | ** Lua Parser |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -245,7 +245,7 @@ static int newupvalue (FuncState *fs, TString *name, expdesc *v) { | |||
| 245 | 245 | ||
| 246 | static int searchvar (FuncState *fs, TString *n) { | 246 | static int searchvar (FuncState *fs, TString *n) { |
| 247 | int i; | 247 | int i; |
| 248 | for (i=fs->nactvar-1; i >= 0; i--) { | 248 | for (i = cast_int(fs->nactvar) - 1; i >= 0; i--) { |
| 249 | if (luaS_eqstr(n, getlocvar(fs, i)->varname)) | 249 | if (luaS_eqstr(n, getlocvar(fs, i)->varname)) |
| 250 | return i; | 250 | return i; |
| 251 | } | 251 | } |
