Sergey Fedorov 2023-06-27 12:29:23 +08:00
parent e06e409dc1
commit dca5043812
2 changed files with 4 additions and 0 deletions

View File

@ -83,7 +83,9 @@ struct ParsedRegex
Quantifier quantifier;
uint16_t filler = 0;
};
#ifndef __ppc__
static_assert(sizeof(Node) == 16, "");
#endif
Vector<Node, MemoryDomain::Regex> nodes;

View File

@ -131,7 +131,9 @@ struct CompiledRegex : RefCountable, UseMemoryDomain<MemoryDomain::Regex>
mutable uint16_t last_step; // mutable as used during execution
Param param;
};
#ifndef __ppc__
static_assert(sizeof(Instruction) == 8);
#endif
explicit operator bool() const { return not instructions.empty(); }