Skip to content

Commit a16ff78

Browse files
committed
fix problem with special attrs for windows
Signed-off-by: Howard Pritchard <[email protected]>
1 parent 6b91cc3 commit a16ff78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ompi/mpi/c/win_get_attr.c.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ PROTOTYPE ERROR_CLASS win_get_attr(WIN win, ATTR_KEY win_keyval,
6262
*/
6363

6464
if (MPI_WIN_CREATE_FLAVOR == win_keyval) {
65-
int win_flavor = *(int *)attribute_val;
66-
switch(win_flavor) {
65+
int *win_flavor = *(int **)attribute_val;
66+
switch(*win_flavor) {
6767
case MPI_WIN_FLAVOR_CREATE:
6868
*(int **)attribute_val = &ompi_abi_mpi_win_flavor_create;
6969
break;
@@ -81,8 +81,8 @@ PROTOTYPE ERROR_CLASS win_get_attr(WIN win, ATTR_KEY win_keyval,
8181
break;
8282
}
8383
} else if (MPI_WIN_MODEL == win_keyval) {
84-
int win_model = *(int *)attribute_val;
85-
switch(win_model) {
84+
int *win_model = *(int **)attribute_val;
85+
switch(*win_model) {
8686
case MPI_WIN_UNIFIED:
8787
*(int **)attribute_val = &ompi_abi_mpi_win_model_unified;
8888
break;

0 commit comments

Comments
 (0)