Skip to content
Snippets Groups Projects
Commit a2af6ec2 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[entity-py] Fix cast.

parent a3c40d9d
No related branches found
No related tags found
No related merge requests found
......@@ -83,8 +83,11 @@ bp::object executeCmd(bp::tuple args, bp::dict) {
throw std::out_of_range("Wrong number of arguments");
std::vector<Value> values;
values.reserve(command.valueTypes().size());
for (int i = 1; i < bp::len(args); ++i)
values.push_back(convert::toValue(args[i], command.valueTypes()[i - 1]));
for (bp::ssize_t i = 1; i < bp::len(args); ++i)
values.push_back(convert::toValue
(args[i],
command.valueTypes()
[static_cast<std::vector<Value>::size_type>(i - 1)]));
command.setParameterValues(values);
return convert::fromValue(command.execute());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment