Regex: comment the mutables in CompiledRegex::Instruction and fix their init
This commit is contained in:
parent
8b2297f5ca
commit
87eec79d07
|
@ -757,7 +757,7 @@ private:
|
||||||
uint32_t push_inst(CompiledRegex::Op op, uint32_t param = 0)
|
uint32_t push_inst(CompiledRegex::Op op, uint32_t param = 0)
|
||||||
{
|
{
|
||||||
uint32_t res = m_program.instructions.size();
|
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;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,7 @@ struct CompiledRegex : RefCountable, UseMemoryDomain<MemoryDomain::Regex>
|
||||||
struct Instruction
|
struct Instruction
|
||||||
{
|
{
|
||||||
Op op;
|
Op op;
|
||||||
|
// Those mutables are used during execution
|
||||||
mutable bool scheduled;
|
mutable bool scheduled;
|
||||||
mutable uint16_t last_step;
|
mutable uint16_t last_step;
|
||||||
uint32_t param;
|
uint32_t param;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user