mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-01 20:49:44 +00:00
Error in type checking introduced in ca98e77b40
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
PyObject* element = PySequence_GetItem(aggregate, i);
|
PyObject* element = PySequence_GetItem(aggregate, i);
|
||||||
// This is equivalent to the PyFloat_CheckExact macro. This means
|
// This is equivalent to the PyFloat_CheckExact macro. This means
|
||||||
// that direct instances of int, float, str, etc. need to be used.
|
// 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);
|
Py_DECREF(element);
|
||||||
if (!b) {
|
if (!b) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user