diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-08 15:18:57 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-08 15:18:57 -0300 |
| commit | 7ade1557627cf3f09c23c892ee227b7386f28414 (patch) | |
| tree | ef534e61b85351c4edc5debb5d6f6a580e8fc5da /lparser.c | |
| parent | d827e96f33056bcc0daca0c04b3273604f9d5986 (diff) | |
| download | lua-7ade1557627cf3f09c23c892ee227b7386f28414.tar.gz lua-7ade1557627cf3f09c23c892ee227b7386f28414.tar.bz2 lua-7ade1557627cf3f09c23c892ee227b7386f28414.zip | |
Janitorial work on casts
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 | ||
