summaryrefslogtreecommitdiff
path: root/src/regex_impl.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-12-05 22:48:09 +1100
committerMaxime Coste <mawww@kakoune.org>2025-01-22 08:18:32 +1100
commitd92496449d0c9655253ad16363685bb8446dc582 (patch)
treec539b0b66a1e2c6da8f6a0c11e17f700a46ee0c8 /src/regex_impl.cc
parent2856b99e0914cc7a659977f2b33308cb5b4c9bb7 (diff)
Use uint64_t for regex step
Its unclear that maintaining a small instruction size outweigh the cost of handling wrapping of the current_step every 64K codepoints, this makes the code simpler.
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 0789ef6d..6ac9b4f2 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, 0, param });
+ m_program.instructions.push_back({ op, param, 0 });
return OpIndex(res);
}