diff --git a/db/view/view.cc b/db/view/view.cc index 3464db97cc..5b67651e16 100644 --- a/db/view/view.cc +++ b/db/view/view.cc @@ -940,7 +940,7 @@ static void apply_tracked_tombstones(range_tombstone_accumulator& tracker, clust future view_update_builder::on_results() { if (_update && !_update->is_end_of_partition() && _existing && !_existing->is_end_of_partition()) { - int cmp = position_in_partition::tri_compare(*_schema)(_update->position(), _existing->position()); + auto cmp = position_in_partition::tri_compare(*_schema)(_update->position(), _existing->position()); if (cmp < 0) { // We have an update where there was nothing before if (_update->is_range_tombstone()) {