py3: TechDraw: Int->Long

This commit is contained in:
looooo 2017-02-20 19:49:07 +01:00 committed by wmayer
parent e13d4a7882
commit b61a95c7de

View File

@ -80,16 +80,8 @@ PyObject* DrawParametricTemplatePy::drawLine(PyObject *args)
} }
#if PY_MAJOR_VERSION < 3
Py::Int DrawParametricTemplatePy::getGeometryCount(void) const
{
int size = getDrawParametricTemplatePtr()->getGeometry().size();
return Py::Int(size);
}
#else
Py::Long DrawParametricTemplatePy::getGeometryCount(void) const Py::Long DrawParametricTemplatePy::getGeometryCount(void) const
{ {
int size = getDrawParametricTemplatePtr()->getGeometry().size(); int size = getDrawParametricTemplatePtr()->getGeometry().size();
return Py::Long(size); return Py::Long(size);
} }
#endif