diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-10-15 09:34:49 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-11-01 14:05:14 +0800 |
| commit | 87eec79d07454352a8e063cb825c2817eb0a0db4 (patch) | |
| tree | da420263434a63286d91eeca1165db8acb358c2c /src | |
| parent | 8b2297f5cafcd413fdf7fbd774c464496717008d (diff) | |
Regex: comment the mutables in CompiledRegex::Instruction and fix their init
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex_impl.cc | 2 | ||||
| -rw-r--r-- | src/regex_impl.hh | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/regex_impl.cc b/src/regex_impl.cc index 57300a51..f99fe5e0 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -757,7 +757,7 @@ private: uint32_t push_inst(CompiledRegex::Op op, uint32_t param = 0) { uint32_t res = m_program.instructions.size(); - m_program.instructions.push_back({ op, false, false, param }); + m_program.instructions.push_back({ op, false, 0, param }); return res; } diff --git a/src/regex_impl.hh b/src/regex_impl.hh index 27820605..664fb4f4 100644 --- a/src/regex_impl.hh +++ b/src/regex_impl.hh @@ -55,6 +55,7 @@ struct CompiledRegex : RefCountable, UseMemoryDomain<MemoryDomain::Regex> struct Instruction { Op op; + // Those mutables are used during execution mutable bool scheduled; mutable uint16_t last_step; uint32_t param; |
