Skip to content

Commit

Permalink
py3: TechDraw: Int->Long
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo authored and wwmayer committed Feb 21, 2017
1 parent e13d4a7 commit b61a95c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Mod/TechDraw/App/DrawParametricTemplatePyImp.cpp
Expand Up @@ -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
{
int size = getDrawParametricTemplatePtr()->getGeometry().size();
return Py::Long(size);
}
#endif

0 comments on commit b61a95c

Please sign in to comment.