mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
Cast to size_t to compare on equal signedness
This commit is contained in:
1 parent
aaeacfd140
commit
4856260aac
1 file changed
+1
-1
+1
-1
@@ -348,7 +348,7 @@ Status TupleRangeFromTable(const Table& table, const compute::CastOptions& cast_
|
||||
}
|
||||
|
||||
// TODO: Use std::size with C++17
|
||||
if (rows->size() != table.num_rows()) {
|
||||
if (rows->size() != static_cast<size_t>(table.num_rows())) {
|
||||
std::stringstream ss;
|
||||
ss << "Number of rows in the table does not match the size of the target: ";
|
||||
ss << table.num_rows() << " != " << rows->size();
|
||||
|
||||
Reference in new issue
Block a user