aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lundump.h3
-rw-r--r--testes/calls.lua2
2 files changed, 2 insertions, 3 deletions
diff --git a/lundump.h b/lundump.h
index f3748a99..bc71ced8 100644
--- a/lundump.h
+++ b/lundump.h
@@ -21,8 +21,7 @@
21/* 21/*
22** Encode major-minor version in one byte, one nibble for each 22** Encode major-minor version in one byte, one nibble for each
23*/ 23*/
24#define MYINT(s) (s[0]-'0') /* assume one-digit numerals */ 24#define LUAC_VERSION (LUA_VERSION_MAJOR_N*16+LUA_VERSION_MINOR_N)
25#define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR))
26 25
27#define LUAC_FORMAT 0 /* this is the official format */ 26#define LUAC_FORMAT 0 /* this is the official format */
28 27
diff --git a/testes/calls.lua b/testes/calls.lua
index 2d562a24..664be1b4 100644
--- a/testes/calls.lua
+++ b/testes/calls.lua
@@ -342,7 +342,7 @@ do -- another bug (in 5.4.0)
342end 342end
343 343
344 344
345do -- another bug (since 5.2) 345if not _port then -- another bug (since 5.2)
346 -- corrupted binary dump: list of upvalue names is larger than number 346 -- corrupted binary dump: list of upvalue names is larger than number
347 -- of upvalues, overflowing the array of upvalues. 347 -- of upvalues, overflowing the array of upvalues.
348 local code = 348 local code =