mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
Error in type checking introduced in ca98e77b40
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user