Explorar o código

core: minor macro fix

Andrei Pelinescu-Onciul %!s(int64=16) %!d(string=hai) anos
pai
achega
cfa35518d7
Modificáronse 1 ficheiros con 1 adicións e 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{\