File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 60
60
61
61
/* This is for OUT parameters. Does only alloc */
62
62
#define OMPI_ARRAY_FINT_2_INT_ALLOC (in , n ) \
63
- OMPI_ARRAY_NAME_CONVERT(in) = malloc(n * sizeof(int))
63
+ OMPI_ARRAY_NAME_CONVERT(in) = malloc((n) * sizeof(int))
64
64
65
65
/* This is for IN/IN-OUT parameters. Does alloc and assignment */
66
66
#define OMPI_ARRAY_FINT_2_INT (in , n ) \
117
117
118
118
/* This is for OUT parameters. Does only alloc */
119
119
#define OMPI_ARRAY_FINT_2_INT_ALLOC (in , n ) \
120
- OMPI_ARRAY_NAME_CONVERT(in) = malloc(n * sizeof(int))
120
+ OMPI_ARRAY_NAME_CONVERT(in) = malloc((n) * sizeof(int))
121
121
122
122
#define OMPI_ARRAY_FINT_2_INT (in , n ) \
123
123
do { \
204
204
# define OMPI_LOGICAL_ARRAY_NAME_DECL (in ) int * c_##in
205
205
# define OMPI_LOGICAL_ARRAY_NAME_CONVERT (in ) c_##in
206
206
# define OMPI_ARRAY_LOGICAL_2_INT_ALLOC (in ,n ) \
207
- OMPI_LOGICAL_ARRAY_NAME_CONVERT(in) = malloc(n * sizeof(int))
207
+ OMPI_LOGICAL_ARRAY_NAME_CONVERT(in) = malloc((n) * sizeof(int))
208
208
# define OMPI_ARRAY_LOGICAL_2_INT_CLEANUP (in ) \
209
209
free(OMPI_LOGICAL_ARRAY_NAME_CONVERT(in))
210
210
You can’t perform that action at this time.
0 commit comments