summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/lua/src/lundump.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/lua/src/lundump.h')
-rw-r--r--3rdparty/lua/src/lundump.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/3rdparty/lua/src/lundump.h b/3rdparty/lua/src/lundump.h
index f3748a99807..a97676ca185 100644
--- a/3rdparty/lua/src/lundump.h
+++ b/3rdparty/lua/src/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_NUM / 100) * 16) + LUA_VERSION_NUM % 100)
#define LUAC_FORMAT 0 /* this is the official format */