Project

General

Profile

Feature #761 ยป 0014-Apply-patch-2-for-lua-5.4.7.patch

Marko Lindqvist, 09/06/2024 05:55 PM

View differences:

dependencies/lua-5.4/Version.txt
(http://www.lua.org/ftp/lua-5.4.7.tar.gz)
Upstream bug fixes from https://www.lua.org/bugs.html applied:
-
2
Upstream bug fixes not applicable to our tree:
1
Not entire lua distribution directory hierarchy is included here, and
some files needed for Freeciv usage have been added.
dependencies/lua-5.4/src/lcode.c
#define MAXREGS 255
/* (note that expressions VJMP also have jumps.) */
#define hasjumps(e) ((e)->t != (e)->f)
......
** or it is a constant.
*/
void luaK_exp2val (FuncState *fs, expdesc *e) {
if (hasjumps(e))
if (e->k == VJMP || hasjumps(e))
luaK_exp2anyreg(fs, e);
else
luaK_dischargevars(fs, e);
    (1-1/1)