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 <[email protected]>
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 <[email protected]>
    Signed-off-by: François Saint-Jacques <[email protected]>
---
 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) {

Reply via email to