diff --git a/ompi/mca/btl/openib/btl_openib_endpoint.h b/ompi/mca/btl/openib/btl_openib_endpoint.h index 31e3c9246a..05f6f051bd 100644 --- a/ompi/mca/btl/openib/btl_openib_endpoint.h +++ b/ompi/mca/btl/openib/btl_openib_endpoint.h @@ -503,7 +503,8 @@ 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(&ep->eager_rdma_remote.seq, ftr->seq, 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);