Skip to content

Commit

Permalink
Fix incorrect types
Browse files Browse the repository at this point in the history
  • Loading branch information
mpage committed Oct 18, 2024
1 parent 4c040d3 commit 5b7658c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Python/index_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ parent(Py_ssize_t i)
}

static inline Py_ssize_t
left_child(int32_t i)
left_child(Py_ssize_t i)
{
return 2 * i + 1;
}

static inline Py_ssize_t
right_child(int32_t i)
right_child(Py_ssize_t i)
{
return 2 * i + 2;
}
Expand Down Expand Up @@ -121,7 +121,7 @@ heap_ensure_capacity(_PyIndexHeap *heap, Py_ssize_t limit)
if (!new_capacity) {
return -1;
}
Py_ssize_t *new_values = PyMem_RawCalloc(new_capacity, sizeof(Py_ssize_t));
int32_t *new_values = PyMem_RawCalloc(new_capacity, sizeof(int32_t));
if (new_values == NULL) {
return -1;
}
Expand Down

0 comments on commit 5b7658c

Please sign in to comment.