Unbreak build on ppc

Fixes: https://github.com/mawww/kakoune/issues/4937
This commit is contained in:
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; Quantifier quantifier;
uint16_t filler = 0; uint16_t filler = 0;
}; };
#ifndef __ppc__
static_assert(sizeof(Node) == 16, ""); static_assert(sizeof(Node) == 16, "");
#endif
Vector<Node, MemoryDomain::Regex> nodes; 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 mutable uint16_t last_step; // mutable as used during execution
Param param; Param param;
}; };
#ifndef __ppc__
static_assert(sizeof(Instruction) == 8); static_assert(sizeof(Instruction) == 8);
#endif
explicit operator bool() const { return not instructions.empty(); } explicit operator bool() const { return not instructions.empty(); }