aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-06-29 12:06:44 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-06-29 12:06:44 -0300
commitf96497397addca22f22a6ba6eeabc906be43f16b (patch)
treeaf8d27b9af36dfe0b0b6e0f765ea90b95b110efc /lundump.c
parent5a1c8d8ef343bf0157851a4832c2c937b812b64f (diff)
downloadlua-f96497397addca22f22a6ba6eeabc906be43f16b.tar.gz
lua-f96497397addca22f22a6ba6eeabc906be43f16b.tar.bz2
lua-f96497397addca22f22a6ba6eeabc906be43f16b.zip
new type 'StackValue' for stack elements
(we may want to put extra info there in the future)
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lundump.c b/lundump.c
index f98c70e1..1f2f1a92 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 2.45 2017/06/27 11:35:31 roberto Exp roberto $ 2** $Id: lundump.c,v 2.46 2017/06/27 14:21:12 roberto Exp roberto $
3** load precompiled Lua chunks 3** load precompiled Lua chunks
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -283,7 +283,7 @@ LClosure *luaU_undump(lua_State *L, ZIO *Z, const char *name) {
283 S.Z = Z; 283 S.Z = Z;
284 checkHeader(&S); 284 checkHeader(&S);
285 cl = luaF_newLclosure(L, LoadByte(&S)); 285 cl = luaF_newLclosure(L, LoadByte(&S));
286 setclLvalue(L, L->top, cl); 286 setclLvalue2s(L, L->top, cl);
287 luaD_inctop(L); 287 luaD_inctop(L);
288 cl->p = luaF_newproto(L); 288 cl->p = luaF_newproto(L);
289 LoadFunction(&S, cl->p, NULL); 289 LoadFunction(&S, cl->p, NULL);