py3: path: some fixes to make path py3-compileable

This commit is contained in:
looooo
2017-05-05 15:30:13 +02:00
committed by wmayer
parent 6ba65d4d63
commit 226dd17e5f
4 changed files with 30 additions and 6 deletions

View File

@@ -416,8 +416,12 @@ private:
PyTuple_SetItem(ret,0,list);
PyTuple_SetItem(ret,1,new Base::VectorPy(
Base::Vector3d(pend.X(),pend.Y(),pend.Z())));
if(need_arc_plane)
if(need_arc_plane)
#if PY_MAJOR_VERSION < 3
PyTuple_SetItem(ret,2,PyInt_FromLong(arc_plane));
#else
PyTuple_SetItem(ret,2,PyLong_FromLong(arc_plane));
#endif
return Py::asObject(ret);
} PATH_CATCH
}