From 8d906b12f2779a2883b0386fdf02b1560262fae6 Mon Sep 17 00:00:00 2001 From: Mike Dubman Date: Fri, 11 Jul 2014 13:25:09 +0000 Subject: [PATCH] oshmem: fix warnings fixed by Igor, reviewed by Miked cmr=v1.8.2:reviewer=ompi-rm1.8 This commit was SVN r32217. --- oshmem/mca/memheap/memheap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oshmem/mca/memheap/memheap.h b/oshmem/mca/memheap/memheap.h index eb9b1f9338..ce8f2d3ef1 100644 --- a/oshmem/mca/memheap/memheap.h +++ b/oshmem/mca/memheap/memheap.h @@ -158,8 +158,8 @@ OSHMEM_DECLSPEC extern mca_memheap_base_module_t mca_memheap; * must be memheap address and segment must be mapped */ static inline int mca_memheap_base_can_local_copy(sshmem_mkey_t *mkey, void *dst_addr) { - return mca_memheap.memheap_is_symmetric_addr(dst_addr) && - 0 == mkey->len && MAP_SEGMENT_SHM_INVALID != mkey->u.key; + return mca_memheap.memheap_is_symmetric_addr(dst_addr) && + (0 == mkey->len) && (MAP_SEGMENT_SHM_INVALID != (int)mkey->u.key); }