You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2016/05/20 23:11:15 UTC

[trafficserver] 19/28: Remove redundant ACTION_RESULT macro parentheses.

This is an automated email from the ASF dual-hosted git repository.

sorber pushed a commit to branch 6.2.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit cf2bb28a503b02ba7830ed112dbe94647416315e
Author: kreats <zh...@gmail.com>
AuthorDate: Thu Mar 31 21:48:22 2016 -0400

    Remove redundant ACTION_RESULT macro parentheses.
    
    This closes #547.
    
    (cherry picked from commit 6aea6c51b145988a806326e26f7e5831c51544cc)
---
 iocore/eventsystem/I_Action.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/iocore/eventsystem/I_Action.h b/iocore/eventsystem/I_Action.h
index 4f534d0..6ee2eaa 100644
--- a/iocore/eventsystem/I_Action.h
+++ b/iocore/eventsystem/I_Action.h
@@ -204,8 +204,7 @@ public:
 
 #define MAKE_ACTION_RESULT(_x) (Action *)(((uintptr_t)((_x << 1) + 1)))
 
-#define ACTION_RESULT(_x) \
-  (int)((((uintptr_t)_x)&1)!=0?(((uintptr_t)>>1):(uintptr_t)0))
+#define ACTION_RESULT(_x) (int)((((uintptr_t)_x) & 1) != 0 ? ((uintptr_t)(_x) >> 1) : (uintptr_t)0)
 
 #define IS_ACTION_RESULT(_x) ((((uintptr_t)_x) & 1) != 0)
 

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.