mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Fix some warnings produced by different compilers. (#5593)
This commit is contained in:
parent
5bb0005f9f
commit
bfe4fd5f2e
6 changed files with 19 additions and 7 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue