From ce6f5502c99ce9a367e25b678e375db6f8164d73 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 18 Mar 2024 15:56:32 -0300 Subject: 'luaH_get' functions return 'TValue' Instead of receiving a parameter telling them where to put the result of the query, these functions return the TValue directly. (That is, they return a structure.) --- lundump.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lundump.c') diff --git a/lundump.c b/lundump.c index 51d5dc66..593a4951 100644 --- a/lundump.c +++ b/lundump.c @@ -149,8 +149,7 @@ static void loadString (LoadState *S, Proto *p, TString **sl) { } else if (size == 1) { /* previously saved string? */ lua_Integer idx = cast(lua_Integer, loadSize(S)); /* get its index */ - TValue stv; - luaH_getint(S->h, idx, &stv); /* get its value */ + TValue stv = luaH_getint(S->h, idx); /* get its value */ *sl = ts = tsvalue(&stv); luaC_objbarrier(L, p, ts); return; /* do not save it again */ -- cgit v1.2.3-55-g6feb