mirror of https://github.com/python/cpython
gh-112075: Remove compiler warning from apple clang (gh-115855)
This commit is contained in:
parent
0a61e23700
commit
f58f8cef74
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue