Skip to content

Commit b11cb23

Browse files
authored
Merge pull request #6519 from sam6258/int4_cswap_fix_v4.0.x
v4.0.x: shmem/fortran: Fix invalid datatype size in call to atomic cswap
2 parents 9a1b6cf + 5f4f5d4 commit b11cb23

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)