aboutsummaryrefslogtreecommitdiff
path: root/lundump.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-15 11:29:30 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-04-15 11:29:30 -0300
commit8f961da3dbf8c45389d1431e6dff8e44e41f1a57 (patch)
treeee67fa31c29eab0569c35c62b17f43092f60d940 /lundump.h
parent5c46b7b8cf3a71cce5572b1fca84542e24723efd (diff)
downloadlua-8f961da3dbf8c45389d1431e6dff8e44e41f1a57.tar.gz
lua-8f961da3dbf8c45389d1431e6dff8e44e41f1a57.tar.bz2
lua-8f961da3dbf8c45389d1431e6dff8e44e41f1a57.zip
macros cast_integer/cast_unsigned replaced by cast_u2s/cast_s2u, that
should be used only between lua_Integer and lua_Unsigned
Diffstat (limited to 'lundump.h')
-rw-r--r--lundump.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lundump.h b/lundump.h
index 6b851da0..67f6b57c 100644
--- a/lundump.h
+++ b/lundump.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.h,v 1.41 2014/03/10 19:52:47 roberto Exp roberto $ 2** $Id: lundump.h,v 1.42 2014/03/11 14:22:54 roberto Exp roberto $
3** load precompiled Lua chunks 3** load precompiled Lua chunks
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -15,7 +15,7 @@
15/* data to catch conversion errors */ 15/* data to catch conversion errors */
16#define LUAC_DATA "\x19\x93\r\n\x1a\n" 16#define LUAC_DATA "\x19\x93\r\n\x1a\n"
17 17
18#define LUAC_INT cast_integer(0xABCD) 18#define LUAC_INT 0x5678
19#define LUAC_NUM cast_num(370.5) 19#define LUAC_NUM cast_num(370.5)
20 20
21#define MYINT(s) (s[0]-'0') 21#define MYINT(s) (s[0]-'0')