lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 68f4ccdd00edac2a1b02878f0ef6fa32e8893857
parent 342a9365996d5f2018602e7650262adaf72bcb52
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue, 11 Mar 2014 11:22:29 -0300

make sure that LUAC_INT is a lua_Integer and that LUAC_NUM is
a lua_Number

Diffstat:
Mlundump.h | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

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