Browse Source

core: minor macro fix

Andrei Pelinescu-Onciul 16 years ago
parent
commit
cfa35518d7
1 changed files with 1 additions and 1 deletions
  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 */
 /* return the value or 0 if the msg_id doesn't match */
 #define get_msgid_val(var, id, type)\
 #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)\
 #define set_msgid_val(var, id, type, value)\
 	do{\
 	do{\