Base: Standardize on Py::Long type for Python bindings.
This commit is contained in:
@@ -284,7 +284,7 @@ PyObject* PropertyContainerPy::setPropertyStatus(PyObject* args)
|
||||
status.set(it->second, value);
|
||||
}
|
||||
else if (item.isNumeric()) {
|
||||
int v = Py::Int(item);
|
||||
int v = Py::Long(item);
|
||||
if (v < 0) {
|
||||
value = false;
|
||||
v = -v;
|
||||
@@ -345,7 +345,7 @@ PyObject* PropertyContainerPy::getPropertyStatus(PyObject* args)
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
ret.append(Py::Int(static_cast<long>(i)));
|
||||
ret.append(Py::Long(static_cast<long>(i)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user