Commit 7ebe9720 authored by Marius Wachtler's avatar Marius Wachtler

fix copy and paste error introduced in #825

parent 582aca53
......@@ -1650,7 +1650,7 @@ extern "C" int PyNumber_Check(PyObject* obj) noexcept {
assert(obj && obj->cls);
// Our check, since we don't currently fill in tp_as_number:
if (PyFloat_Check(obj) || PyFloat_Check(obj) || PyFloat_Check(obj))
if (PyInt_Check(obj) || PyLong_Check(obj) || PyFloat_Check(obj))
return true;
// The CPython check:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment