https://github.com/python/cpython/commit/f58f8cef7445ea04a69ba3e2848fffdb6b72df91
commit: f58f8cef7445ea04a69ba3e2848fffdb6b72df91
branch: main
author: Donghee Na <[email protected]>
committer: corona10 <[email protected]>
date: 2024-02-29T02:51:59+09:00
summary:
gh-112075: Remove compiler warning from apple clang (gh-115855)
files:
M Objects/dictobject.c
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 5ae4c3dbea2380..58fe973bc7a036 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -5029,7 +5029,7 @@ dictiter_iternextkey(PyObject *self)
PyObject *value;
#ifdef Py_GIL_DISABLED
- if (!dictiter_iternext_threadsafe(d, self, &value, NULL) == 0) {
+ if (dictiter_iternext_threadsafe(d, self, &value, NULL) < 0) {
value = NULL;
}
#else
@@ -5152,7 +5152,7 @@ dictiter_iternextvalue(PyObject *self)
PyObject *value;
#ifdef Py_GIL_DISABLED
- if (!dictiter_iternext_threadsafe(d, self, NULL, &value) == 0) {
+ if (dictiter_iternext_threadsafe(d, self, NULL, &value) < 0) {
value = NULL;
}
#else
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]