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:
parent
0880399fbe
commit
25a00bf2a9
|
@ -74,18 +74,14 @@ struct ParsedRegex
|
||||||
};
|
};
|
||||||
|
|
||||||
using NodeIndex = int16_t;
|
using NodeIndex = int16_t;
|
||||||
struct [[gnu::packed]] Node
|
struct Node
|
||||||
{
|
{
|
||||||
Op op;
|
Op op;
|
||||||
bool ignore_case;
|
bool ignore_case;
|
||||||
NodeIndex children_end;
|
NodeIndex children_end;
|
||||||
Codepoint value;
|
Codepoint value;
|
||||||
Quantifier quantifier;
|
Quantifier quantifier;
|
||||||
uint16_t filler = 0;
|
|
||||||
};
|
};
|
||||||
#ifndef __ppc__
|
|
||||||
static_assert(sizeof(Node) == 16, "");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Vector<Node, MemoryDomain::Regex> nodes;
|
Vector<Node, MemoryDomain::Regex> nodes;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user