mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Enable in Windows CI
This commit is contained in:
Notes:
github-actions[bot]
2025-06-30 16:51:45 +00:00
Author: https://github.com/ayeteadoe Commit: https://github.com/LadybirdBrowser/ladybird/commit/dbba6c0df94 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5215 Reviewed-by: https://github.com/ADKaster ✅
@@ -414,7 +414,7 @@ static NamedCharacterReferenceCodepoints g_named_character_reference_codepoints_
|
||||
|
||||
generator.append(R"~~~(};
|
||||
|
||||
struct DafsaNode {
|
||||
struct __attribute__((packed)) DafsaNode {
|
||||
// The actual alphabet of characters used in the list of named character references only
|
||||
// includes 61 unique characters ('1'...'8', ';', 'a'...'z', 'A'...'Z'), but we have
|
||||
// bits to spare and encoding this as a `u8` allows us to avoid the need for converting
|
||||
@@ -441,7 +441,11 @@ struct DafsaNode {
|
||||
// There are 3872 nodes in our DAFSA, so all indexes could fit in a u12.
|
||||
u16 child_index : 14;
|
||||
};
|
||||
static_assert(sizeof(DafsaNode) == 4);
|
||||
#if !defined(AK_OS_WINDOWS)
|
||||
static_assert(sizeof(DafsaNode) == 4);
|
||||
#else
|
||||
static_assert(sizeof(DafsaNode) == 5);
|
||||
#endif
|
||||
|
||||
static DafsaNode g_named_character_reference_dafsa[] = {
|
||||
{ 0, 0, false, true, 1 },
|
||||
|
||||
Reference in New Issue
Block a user