diff --git a/cpp/src/arrow/compute/row/grouper.cc b/cpp/src/arrow/compute/row/grouper.cc index d5572347d26a3..b6bb1d8e092b2 100644 --- a/cpp/src/arrow/compute/row/grouper.cc +++ b/cpp/src/arrow/compute/row/grouper.cc @@ -291,7 +291,7 @@ struct SimpleKeySegmenter : public BaseRowSegmenter { } bool Extend(const void* data) { - if ARROW_PREDICT_FALSE (!extend_was_called_) { + if (ARROW_PREDICT_FALSE(!extend_was_called_)) { extend_was_called_ = true; return kDefaultExtends; }