From dca5043812d6ded97ef62920826caa9f2047690b Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 27 Jun 2023 12:29:23 +0800 Subject: [PATCH] Unbreak build on ppc Fixes: https://github.com/mawww/kakoune/issues/4937 --- src/regex_impl.cc | 2 ++ src/regex_impl.hh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/regex_impl.cc b/src/regex_impl.cc index 9ada6fd5..a380e7f2 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -83,7 +83,9 @@ struct ParsedRegex Quantifier quantifier; uint16_t filler = 0; }; +#ifndef __ppc__ static_assert(sizeof(Node) == 16, ""); +#endif Vector nodes; diff --git a/src/regex_impl.hh b/src/regex_impl.hh index 4ba0e233..f59b2249 100644 --- a/src/regex_impl.hh +++ b/src/regex_impl.hh @@ -131,7 +131,9 @@ struct CompiledRegex : RefCountable, UseMemoryDomain 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(); }