[
https://issues.apache.org/jira/browse/ARROW-6913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antoine Pitrou resolved ARROW-6913.
-----------------------------------
Resolution: Fixed
Issue resolved by pull request 5682
[https://github.com/apache/arrow/pull/5682]
> [R] Potential bug in compute.cc
> -------------------------------
>
> Key: ARROW-6913
> URL: https://issues.apache.org/jira/browse/ARROW-6913
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Reporter: Antoine Pitrou
> Assignee: Neal Richardson
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.0.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Just spotted this compiler warning which looks like a real issue:
> {code}
> compute.cpp: In function 'std::shared_ptr<arrow::ChunkedArray>
> ChunkedArray__Take(const std::shared_ptr<arrow::ChunkedArray>&,
> Rcpp::IntegerVector&)':
> compute.cpp:141:15: warning: suggest parentheses around comparison in operand
> of '&' [-Wparentheses]
> if (min_i >= offset & max_i < offset + len) {
> ~~~~~~^~~~~~~~~
> {code}
> In C++ the "&" operator has a lower priority than comparisons. You probably
> want to use the "&&" operator instead.
> cc [~romainfrancois] [~npr]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)