Skip to content

Commit 42f3dc7

Browse files
committed
idiomatic C
1 parent f9e3fd4 commit 42f3dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_functoolsmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
471471
return NULL;
472472
}
473473
}
474-
if (PyDict_SetItem(pto_kw, key, val)) {
474+
if (PyDict_SetItem(pto_kw, key, val) < 0) {
475475
DEALLOCATE_STACK(small_kwtail, kwtail);
476476
Py_DECREF(pto_kw);
477477
return NULL;

0 commit comments

Comments
 (0)