Explorar el Código

core: minor macro fix

Andrei Pelinescu-Onciul hace 16 años
padre
commit
cfa35518d7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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{\