diff options
Diffstat (limited to '')
| -rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -276,7 +276,7 @@ static LocVar *localdebuginfo (FuncState *fs, int vidx) { | |||
| 276 | static void init_var (FuncState *fs, expdesc *e, int vidx) { | 276 | static void init_var (FuncState *fs, expdesc *e, int vidx) { |
| 277 | e->f = e->t = NO_JUMP; | 277 | e->f = e->t = NO_JUMP; |
| 278 | e->k = VLOCAL; | 278 | e->k = VLOCAL; |
| 279 | e->u.var.vidx = cast(short, vidx); | 279 | e->u.var.vidx = cast_short(vidx); |
| 280 | e->u.var.ridx = getlocalvardesc(fs, vidx)->vd.ridx; | 280 | e->u.var.ridx = getlocalvardesc(fs, vidx)->vd.ridx; |
| 281 | } | 281 | } |
| 282 | 282 | ||
| @@ -495,7 +495,7 @@ static void buildvar (LexState *ls, TString *varname, expdesc *var) { | |||
| 495 | luaK_exp2anyregup(fs, var); /* but could be a constant */ | 495 | luaK_exp2anyregup(fs, var); /* but could be a constant */ |
| 496 | codestring(&key, varname); /* key is variable name */ | 496 | codestring(&key, varname); /* key is variable name */ |
| 497 | luaK_indexed(fs, var, &key); /* env[varname] */ | 497 | luaK_indexed(fs, var, &key); /* env[varname] */ |
| 498 | var->u.ind.vidx = cast(short, info); /* mark it as a declared global */ | 498 | var->u.ind.vidx = cast_short(info); /* mark it as a declared global */ |
| 499 | } | 499 | } |
| 500 | } | 500 | } |
| 501 | 501 | ||
