aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-05-08 15:18:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-05-08 15:18:57 -0300
commit7ade1557627cf3f09c23c892ee227b7386f28414 (patch)
treeef534e61b85351c4edc5debb5d6f6a580e8fc5da /lundump.c
parentd827e96f33056bcc0daca0c04b3273604f9d5986 (diff)
downloadlua-7ade1557627cf3f09c23c892ee227b7386f28414.tar.gz
lua-7ade1557627cf3f09c23c892ee227b7386f28414.tar.bz2
lua-7ade1557627cf3f09c23c892ee227b7386f28414.zip
Janitorial work on casts
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lundump.c b/lundump.c
index d53bfc9a..fccded7d 100644
--- a/lundump.c
+++ b/lundump.c
@@ -149,7 +149,7 @@ static void loadString (LoadState *S, Proto *p, TString **sl) {
149 return; 149 return;
150 } 150 }
151 else if (size == 1) { /* previously saved string? */ 151 else if (size == 1) { /* previously saved string? */
152 lua_Integer idx = cast(lua_Integer, loadSize(S)); /* get its index */ 152 lua_Integer idx = cast_st2S(loadSize(S)); /* get its index */
153 TValue stv; 153 TValue stv;
154 luaH_getint(S->h, idx, &stv); /* get its value */ 154 luaH_getint(S->h, idx, &stv); /* get its value */
155 *sl = ts = tsvalue(&stv); 155 *sl = ts = tsvalue(&stv);