Skip to content

Commit

Permalink
Replace typeof() with size_t in loop header
Browse files Browse the repository at this point in the history
All uses of the `PREPARE_REQUESTS_WITH_NO_FREE` macro map to size_t.

Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Jul 9, 2024
1 parent f375299 commit f64f37b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ompi/mca/vprotocol/pessimist/vprotocol_pessimist_wait.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static int vprotocol_pessimist_request_no_free(ompi_request_t **req) {
}

#define PREPARE_REQUESTS_WITH_NO_FREE(count, requests) do { \
for (typeof(count) i = 0; i < count; i++) \
for (size_t i = 0; i < count; i++) \
{ \
if(requests[i] == MPI_REQUEST_NULL) continue; \
requests[i]->req_free = vprotocol_pessimist_request_no_free; \
Expand Down

0 comments on commit f64f37b

Please sign in to comment.