summaryrefslogtreecommitdiff
path: root/src/regex_impl.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2025-02-04 19:21:43 +1100
committerMaxime Coste <mawww@kakoune.org>2025-02-04 19:21:43 +1100
commit8eb753adfd914b0deade48c7510e30f7e05df860 (patch)
treeed643f3751447ec3e65deeb228c3f826627d6174 /src/regex_impl.cc
parentd92496449d0c9655253ad16363685bb8446dc582 (diff)
Revert "Use uint64_t for regex step"
This got pushed by accident This reverts commit d92496449d0c9655253ad16363685bb8446dc582.
Diffstat (limited to 'src/regex_impl.cc')
-rw-r--r--src/regex_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex_impl.cc b/src/regex_impl.cc
index 6ac9b4f2..0789ef6d 100644
--- a/src/regex_impl.cc
+++ b/src/regex_impl.cc
@@ -867,7 +867,7 @@ private:
const auto res = op_count();
if (res >= max_instructions)
throw regex_error(format("regex compiled to more than {} instructions", max_instructions));
- m_program.instructions.push_back({ op, param, 0 });
+ m_program.instructions.push_back({ op, 0, param });
return OpIndex(res);
}