summaryrefslogtreecommitdiff
path: root/src/regex_impl.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2023-11-05 12:38:39 +1100
committerMaxime Coste <mawww@kakoune.org>2023-11-05 12:38:39 +1100
commit25a00bf2a9f392947b758ce693e9f0944d187429 (patch)
tree039302ee0aa52f61c70437a7943abbf7032a28d6 /src/regex_impl.cc
parent0880399fbe4d5c273858a20fec1a1a84a4e0862a (diff)
Remove ignored packed attribute and static_assert on Node size
This static_assert is not necessary for the code to work and is not valid on every platform.
Diffstat (limited to 'src/regex_impl.cc')
-rw-r--r--src/regex_impl.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/regex_impl.cc b/src/regex_impl.cc
index a02554c7..c793a927 100644
--- a/src/regex_impl.cc
+++ b/src/regex_impl.cc
@@ -74,18 +74,14 @@ struct ParsedRegex
};
using NodeIndex = int16_t;
- struct [[gnu::packed]] Node
+ struct Node
{
Op op;
bool ignore_case;
NodeIndex children_end;
Codepoint value;
Quantifier quantifier;
- uint16_t filler = 0;
};
-#ifndef __ppc__
- static_assert(sizeof(Node) == 16, "");
-#endif
Vector<Node, MemoryDomain::Regex> nodes;