Project

General

Profile

Feature #1861 ยป 0055-Apply-patch-1-for-lua-5.5.0.patch

Marko Lindqvist, 01/06/2026 05:05 PM

View differences:

dependencies/lua-5.5/Version.txt
(http://www.lua.org/ftp/lua-5.5.0.tar.gz)
Upstream bug fixes from https://www.lua.org/bugs.html applied:
1
Not entire lua distribution directory hierarchy is included here, and
some files needed for Freeciv usage have been added.
dependencies/lua-5.5/src/lapi.c
g->gcstp = 0; /* allow GC to run (other bits must be zero here) */
if (n <= 0)
n = g->GCdebt; /* force to run one basic step */
else if (g->GCdebt < n - MAX_LMEM) /* overflow? */
n = MAX_LMEM + g->GCdebt; /* trim 'n' (debt must be negative) */
luaE_setdebt(g, g->GCdebt - n);
luaC_condGC(L, (void)0, work = 1);
if (work && g->gcstate == GCSpause) /* end of cycle? */
    (1-1/1)