Index: FreeCAD-8d73c8f07fcbcb659cf073686fcf5149d31ec7ca/src/Mod/Part/App/GeometryPyImp.cpp
===================================================================
--- FreeCAD-8d73c8f07fcbcb659cf073686fcf5149d31ec7ca.orig/src/Mod/Part/App/GeometryPyImp.cpp
+++ FreeCAD-8d73c8f07fcbcb659cf073686fcf5149d31ec7ca/src/Mod/Part/App/GeometryPyImp.cpp
@@ -248,7 +248,7 @@ PyObject* GeometryPy::getExtensionOfType
std::shared_ptr<const GeometryExtension> ext(this->getGeometryPtr()->getExtension(type));
// we create a copy and transfer this copy's memory management responsibility to Python
- PyObject* cpy = static_cast<GeometryExtensionPy *>(std::const_pointer_cast<GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
+ PyObject* cpy = static_cast<GeometryExtensionPy *>(std::const_pointer_cast<GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(int(0))));
return cpy;
}
@@ -282,7 +282,7 @@ PyObject* GeometryPy::getExtensionOfName
std::shared_ptr<const GeometryExtension> ext(this->getGeometryPtr()->getExtension(std::string(o)));
// we create a copy and transfer this copy's memory management responsibility to Python
- PyObject* cpy = static_cast<GeometryExtensionPy *>(std::const_pointer_cast<GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
+ PyObject* cpy = static_cast<GeometryExtensionPy *>(std::const_pointer_cast<GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(int(0))));
return cpy;
}
@@ -417,7 +417,7 @@ PyObject* GeometryPy::getExtensions(PyOb
if(p) {
// we create a python copy and add it to the list
- PyObject* cpy = static_cast<GeometryExtensionPy *>(p->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
+ PyObject* cpy = static_cast<GeometryExtensionPy *>(p->getPyObject())->copy(Py::new_reference_to(Py::Tuple(int(0))));
PyList_SetItem( list, i, cpy);
}
Index: FreeCAD-8d73c8f07fcbcb659cf073686fcf5149d31ec7ca/src/Mod/Sketcher/App/GeometryFacadePyImp.cpp
===================================================================
--- FreeCAD-8d73c8f07fcbcb659cf073686fcf5149d31ec7ca.orig/src/Mod/Sketcher/App/GeometryFacadePyImp.cpp
+++ FreeCAD-8d73c8f07fcbcb659cf073686fcf5149d31ec7ca/src/Mod/Sketcher/App/GeometryFacadePyImp.cpp
@@ -209,7 +209,7 @@ PyObject* GeometryFacadePy::getExtension
std::shared_ptr<const Part::GeometryExtension> ext(this->getGeometryFacadePtr()->getExtension(type));
// we create a copy and transfer this copy's memory management responsibility to Python
- PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
+ PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(int(0))));
return cpy;
}
@@ -243,7 +243,7 @@ PyObject* GeometryFacadePy::getExtension
std::shared_ptr<const Part::GeometryExtension> ext(this->getGeometryFacadePtr()->getExtension(std::string(o)));
// we create a copy and transfer this copy's memory management responsibility to Python
- PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
+ PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(int(0))));
return cpy;
}
@@ -377,7 +377,7 @@ PyObject* GeometryFacadePy::getExtension
if(p) {
// we create a python copy and add it to the list
- PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(p)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
+ PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(p)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(int(0))));
PyList_SetItem( list, i, cpy);
}
Index: FreeCAD-8d73c8f07fcbcb659cf073686fcf5149d31ec7ca/src/Mod/Sketcher/App/ExternalGeometryFacadePyImp.cpp
===================================================================
--- FreeCAD-8d73c8f07fcbcb659cf073686fcf5149d31ec7ca.orig/src/Mod/Sketcher/App/ExternalGeometryFacadePyImp.cpp
+++ FreeCAD-8d73c8f07fcbcb659cf073686fcf5149d31ec7ca/src/Mod/Sketcher/App/ExternalGeometryFacadePyImp.cpp
@@ -270,7 +270,7 @@ PyObject* ExternalGeometryFacadePy::getE
std::shared_ptr<const Part::GeometryExtension> ext(this->getExternalGeometryFacadePtr()->getExtension(type));
// we create a copy and transfer this copy's memory management responsibility to Python
- PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
+ PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(int(0))));
return cpy;
}
@@ -304,7 +304,7 @@ PyObject* ExternalGeometryFacadePy::getE
std::shared_ptr<const Part::GeometryExtension> ext(this->getExternalGeometryFacadePtr()->getExtension(std::string(o)));
// we create a copy and transfer this copy's memory management responsibility to Python
- PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
+ PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(ext)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(int(0))));
return cpy;
}
@@ -438,7 +438,7 @@ PyObject* ExternalGeometryFacadePy::getE
if(p) {
// we create a python copy and add it to the list
- PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(p)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0))));
+ PyObject* cpy = static_cast<Part::GeometryExtensionPy *>(std::const_pointer_cast<Part::GeometryExtension>(p)->getPyObject())->copy(Py::new_reference_to(Py::Tuple(int(0))));
PyList_SetItem( list, i, cpy);
}