From e736281adf2e5a80b61054cb08465d3a33d02c6f Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 20 Jul 2010 12:23:00 +0000 Subject: [PATCH] Add an extra pair of (), just for defensive programming. This commit was SVN r23444. --- ompi/mca/btl/openib/btl_openib_endpoint.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ompi/mca/btl/openib/btl_openib_endpoint.h b/ompi/mca/btl/openib/btl_openib_endpoint.h index 05f6f051bd..aaf584f9a7 100644 --- a/ompi/mca/btl/openib/btl_openib_endpoint.h +++ b/ompi/mca/btl/openib/btl_openib_endpoint.h @@ -503,8 +503,9 @@ static inline int post_send(mca_btl_openib_endpoint_t *ep, #if OPAL_ENABLE_DEBUG do { ftr->seq = ep->eager_rdma_remote.seq; - } while (!OPAL_ATOMIC_CMPSET_32((int32_t*)&ep->eager_rdma_remote.seq, - (int32_t)ftr->seq, (int32_t)ftr->seq+1)); + } while (!OPAL_ATOMIC_CMPSET_32((int32_t*) &ep->eager_rdma_remote.seq, + (int32_t) ftr->seq, + (int32_t) (ftr->seq+1))); #endif if(ep->nbo) BTL_OPENIB_FOOTER_HTON(*ftr);