summaryrefslogtreecommitdiffstats
path: root/Python/hamt.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-02-09 15:56:34 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-02-09 15:56:34 (GMT)
commit7df80492fc91cb5f344ef53a1ccce9a5bd3f4855 (patch)
tree3360e277fb6d0ef7fe9ce13b47fd60723a02b53d /Python/hamt.c
parent3a047a781a82e0a55c5dae1758e91f1f1ca76026 (diff)
downloadcpython-7df80492fc91cb5f344ef53a1ccce9a5bd3f4855.zip
cpython-7df80492fc91cb5f344ef53a1ccce9a5bd3f4855.tar.gz
cpython-7df80492fc91cb5f344ef53a1ccce9a5bd3f4855.tar.bz2
Fix some warnings produced by different compilers. (GH-5593) (GH-5600)
(cherry picked from commit bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/hamt.c')
-rw-r--r--Python/hamt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/hamt.c b/Python/hamt.c
index c9acbbc..e54d3a4 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];