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))