aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-08-27 12:13:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-08-27 12:13:59 -0300
commit022bf2720287dd079e3e575c01ceaabfbb37489b (patch)
tree421085becb34f28822aed3556cd8a890f961a6f2
parentfd40af92e46dcd8b7638c4108aacb1f525e8578e (diff)
downloadlua-022bf2720287dd079e3e575c01ceaabfbb37489b.tar.gz
lua-022bf2720287dd079e3e575c01ceaabfbb37489b.tar.bz2
lua-022bf2720287dd079e3e575c01ceaabfbb37489b.zip
extra parenteses to avoid warnings
-rw-r--r--ltm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltm.h b/ltm.h
index a1d6a072..5913ead6 100644
--- a/ltm.h
+++ b/ltm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.h,v 1.25 2001/06/06 18:00:19 roberto Exp roberto $ 2** $Id: ltm.h,v 1.26 2001/07/12 18:11:58 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -40,11 +40,11 @@ typedef enum {
40** masks for allowable tag methods 40** masks for allowable tag methods
41** (see `luaT_validevents') 41** (see `luaT_validevents')
42*/ 42*/
43#define HAS_TM_GETGLOBAL(L,t) (1<<(t) & ((1<<LUA_TUSERDATA) | \ 43#define HAS_TM_GETGLOBAL(L,t) ((1<<(t)) & ((1<<LUA_TUSERDATA) | \
44 (1<<LUA_TTABLE) | \ 44 (1<<LUA_TTABLE) | \
45 (1<<LUA_TNIL))) 45 (1<<LUA_TNIL)))
46 46
47#define HAS_TM_SETGLOBAL(L,t) (1<<(t) & ((1<<LUA_TUSERDATA) | \ 47#define HAS_TM_SETGLOBAL(L,t) ((1<<(t)) & ((1<<LUA_TUSERDATA) | \
48 (1<<LUA_TTABLE) | \ 48 (1<<LUA_TTABLE) | \
49 (1<<LUA_TNIL) | \ 49 (1<<LUA_TNIL) | \
50 (1<<LUA_TFUNCTION))) 50 (1<<LUA_TFUNCTION)))