gh-112075: Remove compiler warning from apple clang (gh-115855)

This commit is contained in:
Donghee Na 2024-02-29 02:51:59 +09:00 committed by GitHub
parent 0a61e23700
commit f58f8cef74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

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