aboutsummaryrefslogtreecommitdiff
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-5d834bdf571ef3ee343b21fde2d49de1e4ea08b4.tar.gz
lua-5d834bdf571ef3ee343b21fde2d49de1e4ea08b4.tar.bz2
lua-5d834bdf571ef3ee343b21fde2d49de1e4ea08b4.zip
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 @@
1/* 1/*
2** $Id: lundump.c,v 2.1 2003/12/10 12:13:36 roberto Exp roberto $ 2** $Id: lundump.c,v 2.2 2004/04/30 20:13:38 roberto Exp $
3** load pre-compiled Lua chunks 3** load pre-compiled Lua chunks
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -179,6 +179,9 @@ static void LoadConstants (LoadState* S, Proto* f)
179 case LUA_TNIL: 179 case LUA_TNIL:
180 setnilvalue(o); 180 setnilvalue(o);
181 break; 181 break;
182 case LUA_TBOOLEAN:
183 setbvalue(o, LoadByte(S));
184 break;
182 default: 185 default:
183 luaG_runerror(L,"bad constant type (%d) in %s",t,S->name); 186 luaG_runerror(L,"bad constant type (%d) in %s",t,S->name);
184 break; 187 break;