Fix some warnings produced by different compilers. (#5593)

This commit is contained in:
Serhiy Storchaka 2018-02-09 17:31:26 +02:00 committed by GitHub
parent 5bb0005f9f
commit bfe4fd5f2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 7 deletions

View file

@ -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];