summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Fedorov <vital.had@gmail.com>2023-06-27 12:29:23 +0800
committerSergey Fedorov <vital.had@gmail.com>2023-06-27 12:29:45 +0800
commitdca5043812d6ded97ef62920826caa9f2047690b (patch)
tree7bd25ad5f61f71e261a7606ea14e6fc7abce3cb4 /src
parente06e409dc16cd98e0353b6bd33b311efbc792000 (diff)
Unbreak build on ppc
Fixes: https://github.com/mawww/kakoune/issues/4937
Diffstat (limited to 'src')
-rw-r--r--src/regex_impl.cc2
-rw-r--r--src/regex_impl.hh2
2 files changed, 4 insertions, 0 deletions
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<Node, MemoryDomain::Regex> 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<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(); }