Base: Standardize on Py::Long type for Python bindings.
This commit is contained in:
@@ -491,7 +491,7 @@ void PropertyEnumeration::setPyObject(PyObject* value)
|
||||
if (seq.size() == 2) {
|
||||
Py::Object v(seq[0].ptr());
|
||||
if (!v.isString() && v.isSequence()) {
|
||||
idx = Py::Int(seq[1].ptr());
|
||||
idx = Py::Long(seq[1].ptr());
|
||||
seq = v;
|
||||
}
|
||||
}
|
||||
@@ -608,7 +608,7 @@ bool PropertyEnumeration::getPyPathValue(const ObjectIdentifier& path, Py::Objec
|
||||
else {
|
||||
Py::Tuple tuple(2);
|
||||
tuple.setItem(0, res);
|
||||
tuple.setItem(1, Py::Int(getValue()));
|
||||
tuple.setItem(1, Py::Long(getValue()));
|
||||
r = tuple;
|
||||
}
|
||||
}
|
||||
@@ -617,7 +617,7 @@ bool PropertyEnumeration::getPyPathValue(const ObjectIdentifier& path, Py::Objec
|
||||
r = Py::String(v ? v : "");
|
||||
}
|
||||
else {
|
||||
r = Py::Int(getValue());
|
||||
r = Py::Long(getValue());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user