浏览代码

extra parenteses to avoid warnings

Roberto Ierusalimschy 24 年之前
父节点
当前提交
022bf27202
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      ltm.h

+ 3 - 3
ltm.h

@@ -1,5 +1,5 @@
 /*
-** $Id: ltm.h,v 1.25 2001/06/06 18:00:19 roberto Exp roberto $
+** $Id: ltm.h,v 1.26 2001/07/12 18:11:58 roberto Exp roberto $
 ** Tag methods
 ** See Copyright Notice in lua.h
 */
@@ -40,11 +40,11 @@ typedef enum {
 ** masks for allowable tag methods
 ** (see `luaT_validevents')
 */
-#define HAS_TM_GETGLOBAL(L,t)	(1<<(t) & ((1<<LUA_TUSERDATA) | \
+#define HAS_TM_GETGLOBAL(L,t)	((1<<(t)) & ((1<<LUA_TUSERDATA) | \
                                            (1<<LUA_TTABLE) | \
                                            (1<<LUA_TNIL)))
 
-#define HAS_TM_SETGLOBAL(L,t)	(1<<(t) & ((1<<LUA_TUSERDATA) | \
+#define HAS_TM_SETGLOBAL(L,t)	((1<<(t)) & ((1<<LUA_TUSERDATA) | \
                                            (1<<LUA_TTABLE) | \
                                            (1<<LUA_TNIL) | \
                                            (1<<LUA_TFUNCTION)))