You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by fs...@apache.org on 2020/04/29 20:26:07 UTC
[arrow] branch master updated: ARROW-8632: [C++] Fix conversion
error warning in array_union_test.cc
This is an automated email from the ASF dual-hosted git repository.
fsaintjacques pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 350f293 ARROW-8632: [C++] Fix conversion error warning in array_union_test.cc
350f293 is described below
commit 350f293aff3e176d58bf4763596cfe516647cf7a
Author: Benjamin Kietzman <be...@gmail.com>
AuthorDate: Wed Apr 29 16:25:35 2020 -0400
ARROW-8632: [C++] Fix conversion error warning in array_union_test.cc
Closes #7062 from bkietz/8632-Fix-conversion-error-warn
Authored-by: Benjamin Kietzman <be...@gmail.com>
Signed-off-by: François Saint-Jacques <fs...@gmail.com>
---
cpp/src/arrow/array_union_test.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpp/src/arrow/array_union_test.cc b/cpp/src/arrow/array_union_test.cc
index 89dcf0f..5bcf804 100644
--- a/cpp/src/arrow/array_union_test.cc
+++ b/cpp/src/arrow/array_union_test.cc
@@ -123,7 +123,7 @@ class TestUnionArrayFactories : public ::testing::Test {
ASSERT_EQ(array.child_id(i), type_ids.Value(i));
}
ASSERT_EQ(nullptr, array.child(-1));
- ASSERT_EQ(nullptr, array.child(type_ids.length()));
+ ASSERT_EQ(nullptr, array.child(static_cast<int>(type_ids.length())));
}
void CheckFieldNames(const UnionArray& array, const std::vector<std::string>& names) {