From 5b7658cbbf6df0e86ce7a3143b7c8354a2b9f295 Mon Sep 17 00:00:00 2001 From: Matt Page Date: Fri, 18 Oct 2024 09:47:26 -0700 Subject: [PATCH] Fix incorrect types --- Python/index_pool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Python/index_pool.c b/Python/index_pool.c index 09787ffabcac7e..526eccff74af00 100644 --- a/Python/index_pool.c +++ b/Python/index_pool.c @@ -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; } @@ -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; }