summaryrefslogtreecommitdiff
path: root/src/ldump.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2014-07-31 12:00:00 +0000
committerrepogen <>2014-07-31 12:00:00 +0000
commitd7648e85b78d53a2248de909868192598ad0eb69 (patch)
treec67708a14fd29f8ff7e4981aadb041c5ab577e08 /src/ldump.c
parent3907bda05b0e73eba86487ad703e832ca14b64ce (diff)
downloadlua-github-5.3.0-alpha.tar.gz
Lua 5.3.0-alpha5.3.0-alpha
Diffstat (limited to 'src/ldump.c')
-rw-r--r--src/ldump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ldump.c b/src/ldump.c
index 0be56c65..4418f3be 100644
--- a/src/ldump.c
+++ b/src/ldump.c
@@ -1,5 +1,5 @@
/*
-** $Id: ldump.c,v 2.32 2014/06/18 18:35:43 roberto Exp $
+** $Id: ldump.c,v 2.33 2014/07/18 13:36:14 roberto Exp $
** save precompiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -71,7 +71,7 @@ static void DumpString (const TString *s, DumpState *D) {
if (s == NULL)
DumpByte(0, D);
else {
- size_t size = s->tsv.len + 1; /* include trailing '\0' */
+ size_t size = s->len + 1; /* include trailing '\0' */
if (size < 0xFF)
DumpByte(cast_int(size), D);
else {
@@ -112,7 +112,7 @@ static void DumpConstants (const Proto *f, DumpState *D) {
break;
case LUA_TSHRSTR:
case LUA_TLNGSTR:
- DumpString(rawtsvalue(o), D);
+ DumpString(tsvalue(o), D);
break;
default:
lua_assert(0);