summaryrefslogtreecommitdiffstats
path: root/lua/ldump.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua/ldump.c')
-rw-r--r--lua/ldump.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/ldump.c b/lua/ldump.c
index 699e1dc..d5e6a47 100644
--- a/lua/ldump.c
+++ b/lua/ldump.c
@@ -1,5 +1,5 @@
/*
-** $Id: ldump.c,v 1.19 2011/11/23 17:48:18 lhf Exp $
+** $Id: ldump.c,v 2.17 2012/01/23 23:02:10 roberto Exp $
** save precompiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -84,8 +84,8 @@ static void DumpConstants(const Proto* f, DumpState* D)
for (i=0; i<n; i++)
{
const TValue* o=&f->k[i];
- DumpChar(ttype(o),D);
- switch (ttype(o))
+ DumpChar(ttypenv(o),D);
+ switch (ttypenv(o))
{
case LUA_TNIL:
break;
@@ -98,6 +98,7 @@ static void DumpConstants(const Proto* f, DumpState* D)
case LUA_TSTRING:
DumpString(rawtsvalue(o),D);
break;
+ default: lua_assert(0);
}
}
n=f->sizep;