summaryrefslogtreecommitdiff
path: root/lundump.h
diff options
context:
space:
mode:
Diffstat (limited to 'lundump.h')
-rw-r--r--lundump.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lundump.h b/lundump.h
index 739c7fcd..5b05fed4 100644
--- a/lundump.h
+++ b/lundump.h
@@ -18,8 +18,7 @@
#define LUAC_INT 0x5678
#define LUAC_NUM cast_num(370.5)
-#define MYINT(s) (s[0]-'0')
-#define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR))
+#define LUAC_VERSION LUA_VERSION_NUM
#define LUAC_FORMAT 0 /* this is the official format */
/* load one chunk; from lundump.c */