diff --git a/oshmem/mca/memheap/base/memheap_base_alloc.c b/oshmem/mca/memheap/base/memheap_base_alloc.c index b83499f250..8ff20677ab 100644 --- a/oshmem/mca/memheap/base/memheap_base_alloc.c +++ b/oshmem/mca/memheap/base/memheap_base_alloc.c @@ -70,7 +70,7 @@ int mca_memheap_alloc_with_hint(size_t size, long hint, void** ptr) for (i = 0; i < mca_memheap_base_map.n_segments; i++) { map_segment_t *s = &mca_memheap_base_map.mem_segs[i]; - if (s->allocator && (hint && s->alloc_hints)) { + if (s->allocator && (hint & s->alloc_hints)) { /* Do not fall back to default allocator since it will break the * symmetry between PEs */