aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
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);