Skip to content

Commit

Permalink
pythongh-112075: Remove compiler warning from apple clang (pythongh-1…
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 authored and diegorusso committed Apr 17, 2024
1 parent 3bd5cbc commit baec9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit baec9b3

Please sign in to comment.