Skip to content

Commit 6b294e0

Browse files
author
Scott Miller
committed
shmem/fortran: Fix invalid datatype size in call to atomic cswap
Signed-off-by: Scott Miller <[email protected]>
1 parent 53cd31e commit 6b294e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

oshmem/shmem/fortran/shmem_int4_cswap_f.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
55
* Copyright (c) 2014 Research Organization for Information Science
66
* and Technology (RIST). All rights reserved.
7+
* Copyright (c) 2019 IBM Corporation. All rights reserved.
78
* $COPYRIGHT$
89
*
910
* Additional copyrights may follow
@@ -42,7 +43,7 @@ ompi_fortran_integer4_t shmem_int4_cswap_f(FORTRAN_POINTER_T target, MPI_Fint *c
4243
(void *)&out_value,
4344
FPTR_2_INT(cond, sizeof(ompi_fortran_integer4_t)),
4445
FPTR_2_INT(value, sizeof(ompi_fortran_integer4_t)),
45-
sizeof(out_value),
46+
sizeof(ompi_fortran_integer4_t),
4647
OMPI_FINT_2_INT(*pe)));
4748

4849
return out_value;

0 commit comments

Comments
 (0)