From bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 9 Feb 2018 17:31:26 +0200 Subject: Fix some warnings produced by different compilers. (#5593) --- Python/hamt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/hamt.c') diff --git a/Python/hamt.c b/Python/hamt.c index c9acbbcc5ac..e54d3a4c55f 100644 --- a/Python/hamt.c +++ b/Python/hamt.c @@ -729,7 +729,7 @@ hamt_node_bitmap_assoc(PyHamtNode_Bitmap *self, uint32_t key_idx = 2 * idx; uint32_t val_idx = key_idx + 1; - assert(val_idx < Py_SIZE(self)); + assert(val_idx < (size_t)Py_SIZE(self)); PyObject *key_or_null = self->b_array[key_idx]; PyObject *val_or_node = self->b_array[val_idx]; @@ -1123,7 +1123,7 @@ hamt_node_bitmap_find(PyHamtNode_Bitmap *self, key_idx = idx * 2; val_idx = key_idx + 1; - assert(val_idx < Py_SIZE(self)); + assert(val_idx < (size_t)Py_SIZE(self)); key_or_null = self->b_array[key_idx]; val_or_node = self->b_array[val_idx]; -- cgit v1.2.3