From 5d834bdf571ef3ee343b21fde2d49de1e4ea08b4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 4 Oct 2004 16:01:12 -0300 Subject: function constants may include boolean values --- lundump.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lundump.c') 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; -- cgit v1.2.3-55-g6feb