aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldump.c5
-rw-r--r--lundump.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/ldump.c b/ldump.c
index 2f5609c1..c1220ffd 100644
--- a/ldump.c
+++ b/ldump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldump.c,v 1.7 2004/06/09 21:03:53 lhf Exp lhf $ 2** $Id: ldump.c,v 2.3 2004/07/09 18:24:41 roberto Exp $
3** save pre-compiled Lua chunks 3** save pre-compiled Lua chunks
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -121,6 +121,9 @@ static void DumpConstants(const Proto* f, DumpState* D)
121 break; 121 break;
122 case LUA_TNIL: 122 case LUA_TNIL:
123 break; 123 break;
124 case LUA_TBOOLEAN:
125 DumpByte(bvalue(o),D);
126 break;
124 default: 127 default:
125 lua_assert(0); /* cannot happen */ 128 lua_assert(0); /* cannot happen */
126 break; 129 break;
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;