浏览代码

core: minor macro fix

Andrei Pelinescu-Onciul 16 年之前
父节点
当前提交
cfa35518d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ut.h

+ 1 - 1
ut.h

@@ -174,7 +174,7 @@ struct msgid_var{
 
 /* return the value or 0 if the msg_id doesn't match */
 #define get_msgid_val(var, id, type)\
-	(type)((type)((var).msgid!=(id))-1)&((var).u.type##_val)
+	((type)((type)((var).msgid!=(id))-1)&((var).u.type##_val))
 
 #define set_msgid_val(var, id, type, value)\
 	do{\