From: Donghee Na Date: Wed, 28 Feb 2024 17:51:59 +0000 (+0900) Subject: gh-112075: Remove compiler warning from apple clang (gh-115855) X-Git-Tag: v3.13.0a5~202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f58f8cef7445ea04a69ba3e2848fffdb6b72df91;p=thirdparty%2FPython%2Fcpython.git gh-112075: Remove compiler warning from apple clang (gh-115855) --- diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 5ae4c3dbea23..58fe973bc7a0 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