From 4881e4c686c39e1b28a1953e3c518628459ceaa9 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 6 Nov 2022 14:45:00 +0100 Subject: [PATCH] Error in type checking introduced in ca98e77b4026135d5dd2c8f6f6a773d14d834fe8 --- src/ifcwrap/utils/type_conversion.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcwrap/utils/type_conversion.i b/src/ifcwrap/utils/type_conversion.i index 0171bc1295..af9f5a1a9d 100644 --- a/src/ifcwrap/utils/type_conversion.i +++ b/src/ifcwrap/utils/type_conversion.i @@ -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;