From 68f4ccdd00edac2a1b02878f0ef6fa32e8893857 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 11 Mar 2014 11:22:54 -0300 Subject: make sure that LUAC_INT is a lua_Integer and that LUAC_NUM is a lua_Number --- lundump.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lundump.h') diff --git a/lundump.h b/lundump.h index 1204c2c5..6b851da0 100644 --- a/lundump.h +++ b/lundump.h @@ -1,5 +1,5 @@ /* -** $Id: lundump.h,v 1.40 2014/02/27 16:56:20 roberto Exp roberto $ +** $Id: lundump.h,v 1.41 2014/03/10 19:52:47 roberto Exp roberto $ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ @@ -7,6 +7,7 @@ #ifndef lundump_h #define lundump_h +#include "llimits.h" #include "lobject.h" #include "lzio.h" @@ -14,8 +15,8 @@ /* data to catch conversion errors */ #define LUAC_DATA "\x19\x93\r\n\x1a\n" -#define LUAC_INT 0xABCD -#define LUAC_NUM 370.5 +#define LUAC_INT cast_integer(0xABCD) +#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)) -- cgit v1.2.3-55-g6feb