aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lundump.c b/lundump.c
index 593a4951..51d5dc66 100644
--- a/lundump.c
+++ b/lundump.c
@@ -149,7 +149,8 @@ static void loadString (LoadState *S, Proto *p, TString **sl) {
149 } 149 }
150 else if (size == 1) { /* previously saved string? */ 150 else if (size == 1) { /* previously saved string? */
151 lua_Integer idx = cast(lua_Integer, loadSize(S)); /* get its index */ 151 lua_Integer idx = cast(lua_Integer, loadSize(S)); /* get its index */
152 TValue stv = luaH_getint(S->h, idx); /* get its value */ 152 TValue stv;
153 luaH_getint(S->h, idx, &stv); /* get its value */
153 *sl = ts = tsvalue(&stv); 154 *sl = ts = tsvalue(&stv);
154 luaC_objbarrier(L, p, ts); 155 luaC_objbarrier(L, p, ts);
155 return; /* do not save it again */ 156 return; /* do not save it again */