Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix undefined references to PtrToInt and IntToPtr
  • Loading branch information
albertziegenhagel committed Aug 29, 2020
commit 0aa6e812c74aec26dfb9c068a75a0de5ff43e10c
4 changes: 2 additions & 2 deletions src/mpi/common/mpidef.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ typedef MPIU_Bsize_t MPIDI_msg_sz_t;
*/

/* PtrToInt converts a pointer to a int type, truncating bits if necessary */
#define MPIU_PtrToInt PtrToInt
#define MPIU_PtrToInt(p) ((INT)(INT_PTR) (p) )

/* PtrToAint converts a pointer to an MPI_Aint type, truncating bits if necessary */
#define MPIU_PtrToAint(a) ((MPI_Aint)(INT_PTR) (a) )

/* IntToPtr converts a int to a pointer type, extending bits if necessary */
#define MPIU_IntToPtr IntToPtr
#define MPIU_IntToPtr(i) ((VOID *)(INT_PTR)((int)i))


//
Expand Down