Skip to content

Commit 1bea2b2

Browse files
committed
mpi.h: fix types of MPI_UNWEIGHTED and MPI_WEIGHTS_EMPTY
Thanks to Lisandro Dalcin for reporting. Fixes #1865. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 0d1afba commit 1bea2b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ompi/include/mpi.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* University of Stuttgart. All rights reserved.
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
12-
* Copyright (c) 2007-2014 Cisco Systems, Inc. All rights reserved.
12+
* Copyright (c) 2007-2016 Cisco Systems, Inc. All rights reserved.
1313
* Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
1414
* Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved.
1515
* Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
@@ -434,8 +434,8 @@ typedef int (MPI_Grequest_cancel_function)(void *, int);
434434
/*
435435
* More constants
436436
*/
437-
#define MPI_UNWEIGHTED ((void *) 2) /* unweighted graph */
438-
#define MPI_WEIGHTS_EMPTY ((void *) 3) /* empty weights */
437+
#define MPI_UNWEIGHTED ((int *) 2) /* unweighted graph */
438+
#define MPI_WEIGHTS_EMPTY ((int *) 3) /* empty weights */
439439
#define MPI_BOTTOM ((void *) 0) /* base reference address */
440440
#define MPI_IN_PLACE ((void *) 1) /* in place buffer */
441441
#define MPI_BSEND_OVERHEAD 128 /* size of bsend header + ptr */

0 commit comments

Comments
 (0)