Skip to content

Commit

Permalink
Update cpp/src/arrow/extension/variable_shape_tensor.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
  • Loading branch information
rok and pitrou committed Mar 27, 2024
1 parent e16a6ed commit d7c15fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/extension/variable_shape_tensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Result<std::shared_ptr<DataType>> VariableShapeTensorType::Deserialize(
std::vector<int64_t> permutation;
if (document.HasMember("permutation")) {
permutation.reserve(ndim);
for (auto& x : document["permutation"].GetArray()) {
for (const auto& x : document["permutation"].GetArray()) {
permutation.emplace_back(x.GetInt64());
}
if (permutation.size() != ndim) {
Expand Down

0 comments on commit d7c15fb

Please sign in to comment.