summaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-10-04 16:01:12 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-10-04 16:01:12 -0300
commit5d834bdf571ef3ee343b21fde2d49de1e4ea08b4 (patch)
tree6be59cd80dbd1f1269f62f1d48cb922b88a43496 /lundump.c
parent67391a35daddf781ad2f74aa14e91fae760b2b1c (diff)
downloadlua-github-5d834bdf571ef3ee343b21fde2d49de1e4ea08b4.tar.gz
function constants may include boolean values
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lundump.c b/lundump.c
index 8375a964..74fcf4e0 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
/*
-** $Id: lundump.c,v 2.1 2003/12/10 12:13:36 roberto Exp roberto $
+** $Id: lundump.c,v 2.2 2004/04/30 20:13:38 roberto Exp $
** load pre-compiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -179,6 +179,9 @@ static void LoadConstants (LoadState* S, Proto* f)
case LUA_TNIL:
setnilvalue(o);
break;
+ case LUA_TBOOLEAN:
+ setbvalue(o, LoadByte(S));
+ break;
default:
luaG_runerror(L,"bad constant type (%d) in %s",t,S->name);
break;