This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 939fdd2 fix(c/validation): cast to avoid MSVC warning (#135)
939fdd2 is described below
commit 939fdd2c48580f18d3739e9e40c093b7ceacd21f
Author: David Li <[email protected]>
AuthorDate: Tue Sep 20 10:22:49 2022 -0400
fix(c/validation): cast to avoid MSVC warning (#135)
---
c/validation/adbc_validation.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/c/validation/adbc_validation.cc b/c/validation/adbc_validation.cc
index 492ef48..9878170 100644
--- a/c/validation/adbc_validation.cc
+++ b/c/validation/adbc_validation.cc
@@ -1126,8 +1126,9 @@ void ConnectionTest::TestMetadataGetObjectsColumns() {
ArrowStringView name = ArrowArrayViewGetStringUnsafe(
table_columns->children[0], columns_index);
column_names.push_back(std::string(name.data, name.n_bytes));
- ordinal_positions.push_back(ArrowArrayViewGetIntUnsafe(
- table_columns->children[1], columns_index));
+ ordinal_positions.push_back(
+ static_cast<int32_t>(ArrowArrayViewGetIntUnsafe(
+ table_columns->children[1], columns_index)));
}
}
}