[sr-dev] git:master: core: minor macro fix

Andrei Pelinescu-Onciul andrei at iptel.org
Tue Sep 22 16:36:51 CEST 2009


Module: sip-router
Branch: master
Commit: cfa35518d7517092efef75d2d296f4340f1dfb53
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cfa35518d7517092efef75d2d296f4340f1dfb53

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Tue Sep 22 16:34:04 2009 +0200

core: minor macro fix

---

 ut.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ut.h b/ut.h
index 1d207bd..6861af7 100644
--- a/ut.h
+++ b/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{\




More information about the sr-dev mailing list