Skip to content

Commit

Permalink
msvc: explicit cast to int
Browse files Browse the repository at this point in the history
  • Loading branch information
bkietz committed Sep 18, 2019
1 parent 9d3f17f commit 7c91b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/array/builder_union.cc
Expand Up @@ -63,7 +63,7 @@ BasicUnionBuilder::BasicUnionBuilder(
DCHECK_LT(type_id_to_children_.size(), std::numeric_limits<int8_t>::max());

for (size_t i = 0; i < children.size(); ++i) {
child_fields_[i] = union_type.child(i);
child_fields_[i] = union_type.child(static_cast<int>(i));

auto type_id = union_type.type_codes()[i];
type_id_to_children_[type_id] = children[i].get();
Expand Down

0 comments on commit 7c91b0c

Please sign in to comment.