diff options
| author | Lua Team <team@lua.org> | 2004-12-07 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2004-12-07 12:00:00 +0000 |
| commit | 226f7859b5392b6680b7e703f9cc7f7f101fd365 (patch) | |
| tree | 4345e84719d7f9ccf8d62fa007cbd386f235c58a /src/ldump.c | |
| parent | d8fd22e11b391cf183068049bebbee9702c8f78f (diff) | |
| download | lua-github-5.1-work3.tar.gz | |
Lua 5.1-work35.1-work3
Diffstat (limited to 'src/ldump.c')
| -rw-r--r-- | src/ldump.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ldump.c b/src/ldump.c index bd0becb9..967596a1 100644 --- a/src/ldump.c +++ b/src/ldump.c @@ -1,5 +1,5 @@ /* -** $Id: ldump.c,v 1.8 2004/09/01 21:22:34 lhf Exp $ +** $Id: ldump.c,v 1.9 2004/11/25 09:31:41 lhf Exp $ ** save pre-compiled Lua chunks ** See Copyright Notice in lua.h */ @@ -113,14 +113,17 @@ static void DumpConstants(const Proto* f, DumpState* D) DumpByte(ttype(o),D); switch (ttype(o)) { + case LUA_TNIL: + break; + case LUA_TBOOLEAN: + DumpByte(bvalue(o),D); + break; case LUA_TNUMBER: DumpNumber(nvalue(o),D); break; case LUA_TSTRING: DumpString(rawtsvalue(o),D); break; - case LUA_TNIL: - break; default: lua_assert(0); /* cannot happen */ break; |
