From 351bd03249866d4fbddb4669342f6a2e9a06d384 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Wed, 2 Dec 2015 17:18:56 +0900 Subject: [PATCH] ompi_proc_sentinel_to_name: clear the top left bit --- ompi/proc/proc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ompi/proc/proc.h b/ompi/proc/proc.h index 0117b3f002..6228458832 100644 --- a/ompi/proc/proc.h +++ b/ompi/proc/proc.h @@ -13,6 +13,8 @@ * Copyright (c) 2007-2012 Los Alamos National Security, LLC. All rights * reserved. * Copyright (c) 2013-2014 Intel, Inc. All rights reserved + * Copyright (c) 2015 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -375,6 +377,7 @@ static inline intptr_t ompi_proc_name_to_sentinel (opal_process_name_t name) static inline opal_process_name_t ompi_proc_sentinel_to_name (intptr_t sentinel) { sentinel >>= 1; + sentinel &= 0x7FFFFFFFFFFFFFFF; return *((opal_process_name_t *) &sentinel); }