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 6060
6161 /* This is for OUT parameters. Does only alloc */
6262 #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))
6464
6565 /* This is for IN/IN-OUT parameters. Does alloc and assignment */
6666 #define OMPI_ARRAY_FINT_2_INT (in , n ) \
117117
118118 /* This is for OUT parameters. Does only alloc */
119119 #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))
121121
122122 #define OMPI_ARRAY_FINT_2_INT (in , n ) \
123123 do { \
204204# define OMPI_LOGICAL_ARRAY_NAME_DECL (in ) int * c_##in
205205# define OMPI_LOGICAL_ARRAY_NAME_CONVERT (in ) c_##in
206206# 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))
208208# define OMPI_ARRAY_LOGICAL_2_INT_CLEANUP (in ) \
209209 free(OMPI_LOGICAL_ARRAY_NAME_CONVERT(in))
210210
You can’t perform that action at this time.
0 commit comments