Skip to content
Snippets Groups Projects
Unverified Commit fa7ce080 authored by Dong-hee Na's avatar Dong-hee Na Committed by GitHub
Browse files

bpo-41870: Avoid the test when nargs=0 (GH-22462)

parent 63298930
No related branches found
No related tags found
No related merge requests found
......@@ -72,10 +72,10 @@ bool_vectorcall(PyObject *type, PyObject * const*args,
assert(PyType_Check(type));
if (nargs) {
ok = PyObject_IsTrue(args[0]);
}
if (ok < 0) {
return NULL;
}
}
return PyBool_FromLong(ok);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment