1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-29 10:02:57 +03:00

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.
This commit is contained in:
Maxime Coste 2023-11-05 12:38:39 +11:00
parent 0880399fbe
commit 25a00bf2a9

View File

@ -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;