From 1ab3208a1fceb12fca8f24ba57d6e13c5bff15e3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 13 Jun 2024 15:13:52 -0300 Subject: 'lua.h' back to redundancy in version definitions Several tools inspect 'lua.h' to extract version information, and they assume the file will have some specific format. --- lundump.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lundump.h') diff --git a/lundump.h b/lundump.h index bc71ced8..a97676ca 100644 --- a/lundump.h +++ b/lundump.h @@ -21,7 +21,7 @@ /* ** Encode major-minor version in one byte, one nibble for each */ -#define LUAC_VERSION (LUA_VERSION_MAJOR_N*16+LUA_VERSION_MINOR_N) +#define LUAC_VERSION (((LUA_VERSION_NUM / 100) * 16) + LUA_VERSION_NUM % 100) #define LUAC_FORMAT 0 /* this is the official format */ -- cgit v1.2.3-55-g6feb