aboutsummaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-10-01 15:44:19 +0100
committerGitHub <noreply@github.com>2021-10-01 15:44:19 +0100
commitcd760ceb67c5164983838ed7eb73a833d1597da0 (patch)
tree6648f4ec5564d232282b2e750c1961a449ce7ac7 /Python
parent9eed75fde226cec5a02301cfac1dc8039b5a183e (diff)
downloadcpython3-cd760ceb67c5164983838ed7eb73a833d1597da0.tar.gz
Fix a couple of compiler warnings. (GH-28677)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index ab692fd8de..7f29967eb3 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -3666,7 +3666,7 @@ check_eval_breaker:
assert(PyDict_CheckExact((PyObject *)dict));
PyObject *name = GETITEM(names, cache0->original_oparg);
uint32_t hint = cache1->dk_version_or_hint;
- DEOPT_IF(hint >= dict->ma_keys->dk_nentries, LOAD_ATTR);
+ DEOPT_IF(hint >= (size_t)dict->ma_keys->dk_nentries, LOAD_ATTR);
PyDictKeyEntry *ep = DK_ENTRIES(dict->ma_keys) + hint;
DEOPT_IF(ep->me_key != name, LOAD_ATTR);
res = ep->me_value;
@@ -3774,7 +3774,7 @@ check_eval_breaker:
assert(PyDict_CheckExact((PyObject *)dict));
PyObject *name = GETITEM(names, cache0->original_oparg);
uint32_t hint = cache1->dk_version_or_hint;
- DEOPT_IF(hint >= dict->ma_keys->dk_nentries, STORE_ATTR);
+ DEOPT_IF(hint >= (size_t)dict->ma_keys->dk_nentries, STORE_ATTR);
PyDictKeyEntry *ep = DK_ENTRIES(dict->ma_keys) + hint;
DEOPT_IF(ep->me_key != name, STORE_ATTR);
PyObject *old_value = ep->me_value;