From dcd42acf98959384a0688f8c1415b7daf048a795 Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Tue, 1 Aug 2017 09:49:46 -0600 Subject: [PATCH] oshmem: fix issue with shmem_g c11 generics There was a typo in the shmem_g c11 generic interface in shmem.h.in Thanks to @nspark for reporting the problem and specifying the fix. Fixes #3968 Signed-off-by: Howard Pritchard (cherry picked from commit 1d612da1cbc5f5355fdd4a17ccd5d56fe718a406) --- oshmem/include/shmem.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oshmem/include/shmem.h.in b/oshmem/include/shmem.h.in index ba1f88d063c..7b51eaddd6c 100644 --- a/oshmem/include/shmem.h.in +++ b/oshmem/include/shmem.h.in @@ -298,7 +298,7 @@ OSHMEM_DECLSPEC long long shmem_longlong_g(const long long* addr, int pe); OSHMEM_DECLSPEC long double shmem_longdouble_g(const long double* addr, int pe); #if OSHMEM_HAVE_C11 #define shmem_g(addr, pe) \ - _Generic(&*(dst), \ + _Generic(&*(addr), \ char*: shmem_char_g, \ short*: shmem_short_g, \ int*: shmem_int_g, \