Error in type checking introduced in ca98e77b40

This commit is contained in:
Thomas Krijnen
2022-11-06 14:45:00 +01:00
parent a57cac5f9c
commit 4881e4c686
+1 -1
View File
@@ -35,7 +35,7 @@
PyObject* element = PySequence_GetItem(aggregate, i);
// This is equivalent to the PyFloat_CheckExact macro. This means
// that direct instances of int, float, str, etc. need to be used.
bool b = element->ob_type != type_obj;
bool b = element->ob_type == type_obj;
Py_DECREF(element);
if (!b) {
return false;