Skip to content

Commit dcd42ac

Browse files
committed
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 <[email protected]> (cherry picked from commit 1d612da)
1 parent a9b765a commit dcd42ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oshmem/include/shmem.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ OSHMEM_DECLSPEC long long shmem_longlong_g(const long long* addr, int pe);
298298
OSHMEM_DECLSPEC long double shmem_longdouble_g(const long double* addr, int pe);
299299
#if OSHMEM_HAVE_C11
300300
#define shmem_g(addr, pe) \
301-
_Generic(&*(dst), \
301+
_Generic(&*(addr), \
302302
char*: shmem_char_g, \
303303
short*: shmem_short_g, \
304304
int*: shmem_int_g, \

0 commit comments

Comments
 (0)