mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-29 03:37:21 +00:00
Fix for building with gcc
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
%typemap(in) IfcEntities {
|
%typemap(in) IfcEntities {
|
||||||
if (PySequence_Check($input)) {
|
if (PySequence_Check($input)) {
|
||||||
$1 = std::make_shared<IfcEntityList>();
|
$1 = SHARED_PTR<IfcEntityList>(new IfcEntityList());
|
||||||
for(Py_ssize_t i = 0; i < PySequence_Size($input); ++i) {
|
for(Py_ssize_t i = 0; i < PySequence_Size($input); ++i) {
|
||||||
PyObject* obj = PySequence_GetItem($input, i);
|
PyObject* obj = PySequence_GetItem($input, i);
|
||||||
if (obj) {
|
if (obj) {
|
||||||
|
|||||||
Reference in New Issue
Block a user