function constants may include boolean values

This commit is contained in:
Roberto Ierusalimschy
2004-10-04 16:01:12 -03:00
parent 67391a35da
commit 5d834bdf57
2 changed files with 8 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ldump.c,v 1.7 2004/06/09 21:03:53 lhf Exp lhf $
** $Id: ldump.c,v 2.3 2004/07/09 18:24:41 roberto Exp $
** save pre-compiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -121,6 +121,9 @@ static void DumpConstants(const Proto* f, DumpState* D)
break;
case LUA_TNIL:
break;
case LUA_TBOOLEAN:
DumpByte(bvalue(o),D);
break;
default:
lua_assert(0); /* cannot happen */
break;