Base: Standardize on Py::Long type for Python bindings.
This commit is contained in:
@@ -666,7 +666,7 @@ Py::List AreaPy::getShapes() const
|
||||
Area* area = getAreaPtr();
|
||||
const std::list<Area::Shape>& shapes = area->getChildren();
|
||||
for (auto& s : shapes) {
|
||||
ret.append(Py::TupleN(Part::shape2pyshape(s.shape), Py::Int(s.op)));
|
||||
ret.append(Py::TupleN(Part::shape2pyshape(s.shape), Py::Long(s.op)));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<Documentation>
|
||||
<UserDocu>Returns the cell's category as an integer</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="SourceCategory" Type="Int"/>
|
||||
<Parameter Name="SourceCategory" Type="Long"/>
|
||||
</Attribute>
|
||||
<Attribute Name="SourceCategoryName" ReadOnly="true">
|
||||
<Documentation>
|
||||
|
||||
@@ -134,10 +134,10 @@ Py::Long VoronoiCellPy::getSourceIndex() const
|
||||
return Py::Long(index);
|
||||
}
|
||||
|
||||
Py::Int VoronoiCellPy::getSourceCategory() const
|
||||
Py::Long VoronoiCellPy::getSourceCategory() const
|
||||
{
|
||||
VoronoiCell* c = getVoronoiCellFromPy(this);
|
||||
return Py::Int(c->ptr->source_category());
|
||||
return Py::Long(c->ptr->source_category());
|
||||
}
|
||||
|
||||
Py::String VoronoiCellPy::getSourceCategoryName() const
|
||||
|
||||
Reference in New Issue
Block a user