commit cbae01620278f9b568805db16a96d0631ced473d parent ea39042e13645f63713425c05cc9ee4cfdcf0a40 Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br> Date: Mon, 3 Jul 2023 14:12:27 -0300 Details Diffstat:
M | lundump.h | | | 3 | +-- |
M | testes/calls.lua | | | 2 | +- |
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/lundump.h b/lundump.h @@ -21,8 +21,7 @@ /* ** Encode major-minor version in one byte, one nibble for each */ -#define MYINT(s) (s[0]-'0') /* assume one-digit numerals */ -#define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) +#define LUAC_VERSION (LUA_VERSION_MAJOR_N*16+LUA_VERSION_MINOR_N) #define LUAC_FORMAT 0 /* this is the official format */ diff --git a/testes/calls.lua b/testes/calls.lua @@ -342,7 +342,7 @@ do -- another bug (in 5.4.0) end -do -- another bug (since 5.2) +if not _port then -- another bug (since 5.2) -- corrupted binary dump: list of upvalue names is larger than number -- of upvalues, overflowing the array of upvalues. local code =