diff --git a/src/Functions/extractAllGroups.cpp b/src/Functions/extractAllGroups.cpp index 558d9fd1fce91863373367f6353d03ffd21972fd..79da4761894a7a4b61fc9bf55410f61f26e1c4c6 100644 --- a/src/Functions/extractAllGroups.cpp +++ b/src/Functions/extractAllGroups.cpp @@ -86,7 +86,7 @@ public: // Extract all non-intersecting matches from haystack except group #0. const auto * pos = current_row.data; - auto end = pos + current_row.size; + const auto * end = pos + current_row.size; while (pos < end && re2->Match(re2_st::StringPiece(pos, end - pos), 0, end - pos, re2_st::RE2::UNANCHORED, matched_groups.data(), matched_groups.size()))