summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/lgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/lgc.c')
-rw-r--r--apps/plugins/lua/lgc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/lua/lgc.c b/apps/plugins/lua/lgc.c
index 17b64a103b..2a4d95aba8 100644
--- a/apps/plugins/lua/lgc.c
+++ b/apps/plugins/lua/lgc.c
@@ -318,9 +318,13 @@ static l_mem propagatemark (global_State *g) {
return sizeof(Proto) + sizeof(Instruction) * p->sizecode +
sizeof(Proto *) * p->sizep +
sizeof(TValue) * p->sizek +
- sizeof(int) * p->sizelineinfo +
sizeof(LocVar) * p->sizelocvars +
- sizeof(TString *) * p->sizeupvalues;
+ sizeof(TString *) * p->sizeupvalues +
+#ifdef LUA_OPTIMIZE_DEBUG
+ p->sizelineinfo;
+#else
+ sizeof(int) * p->sizelineinfo;
+#endif
}
default: lua_assert(0); return 0;
}