py3: TechDraw: Int->Long
This commit is contained in:
parent
e13d4a7882
commit
b61a95c7de
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user