diff options
author | Lua Team <team@lua.org> | 2012-03-21 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2012-03-21 12:00:00 +0000 |
commit | 1cb937cf2d4583482aadaff45b6628b39fdcd91e (patch) | |
tree | 614eba453350c41305e41d647e9e03d779314f89 /src/ldump.c | |
parent | 6ee889a587f9b600b564d5c0ba0350faab0387cd (diff) | |
download | lua-github-5.2.1-work1.tar.gz |
Lua 5.2.1-work15.2.1-work1
Diffstat (limited to 'src/ldump.c')
-rw-r--r-- | src/ldump.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ldump.c b/src/ldump.c index 699e1dc4..ae1c780f 100644 --- a/src/ldump.c +++ b/src/ldump.c @@ -1,5 +1,5 @@ /* -** $Id: ldump.c,v 1.19 2011/11/23 17:48:18 lhf Exp $ +** $Id: ldump.c,v 1.20 2012/03/21 18:11:35 lhf 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; |