From b212cf4daea0aeff1bcbddf8c1bd66a7604a841e Mon Sep 17 00:00:00 2001 From: Andrew Friedley Date: Mon, 9 Jul 2007 15:30:29 +0000 Subject: [PATCH] Fix a signedness warning reported by Jeff/MTT. This commit was SVN r15309. --- ompi/mca/btl/ofud/btl_ofud_endpoint.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ompi/mca/btl/ofud/btl_ofud_endpoint.c b/ompi/mca/btl/ofud/btl_ofud_endpoint.c index 08be4c4444..c68ac35a76 100644 --- a/ompi/mca/btl/ofud/btl_ofud_endpoint.c +++ b/ompi/mca/btl/ofud/btl_ofud_endpoint.c @@ -11,6 +11,8 @@ * All rights reserved. * Copyright (c) 2006 Sandia National Laboratories. All rights * reserved. + * Copyright (c) 2007 The Regents of the University of California. + * All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -82,7 +84,7 @@ int mca_btl_ud_endpoint_post_send(mca_btl_ud_module_t* ud_btl, out of the critical section, allowing us to use OPAL_THREAD_ADD32 instead of a full mutex. */ ib_qp = ud_btl->ib_qp[ud_btl->ib_qp_next % MCA_BTL_UD_NUM_QP]; - OPAL_THREAD_ADD32(&ud_btl->ib_qp_next, 1); + OPAL_THREAD_ADD32(((int32_t*)&ud_btl->ib_qp_next), 1); wr->wr.ud.ah = endpoint->rmt_ah; wr->wr.ud.remote_qpn = endpoint->rem_addr.qp_num;