Commit 8d2e0662 authored by Nysal Jan K.A's avatar Nysal Jan K.A Committed by Junchao Zhang
Browse files

Fix MPI_Attr_put on big-endian systems



Cast the pointer to the correct type so that
it works on big-endian systems
Signed-off-by: default avatarMichael Blocksome <blocksom@us.ibm.com>
Signed-off-by: default avatarJunchao Zhang <jczhang@mcs.anl.gov>
parent a0c4278f
...@@ -2386,7 +2386,7 @@ sub addrint_in_decl { ...@@ -2386,7 +2386,7 @@ sub addrint_in_decl {
} }
sub addrint_in_arg { sub addrint_in_arg {
my $count = $_[0]; my $count = $_[0];
print $OUTFD "(void *)(*(MPIR_Pint *)v$count)"; print $OUTFD "(void *)((MPIR_Pint)*(MPI_Fint *)v$count)";
} }
sub attrint_ctof { sub attrint_ctof {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment