From 3db8ced4c7a3b17b3787892748a38824b2ebe95d Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Thu, 19 Nov 2020 18:45:36 +0330 Subject: LibRegex: Change bytecode value type to a 64-bit value To allow storing unicode ranges compactly; this is not utilised at the moment, but changing this later would've been significantly more difficult. Also fixes a few debug logs. --- Libraries/LibRegex/RegexParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibRegex/RegexParser.cpp') diff --git a/Libraries/LibRegex/RegexParser.cpp b/Libraries/LibRegex/RegexParser.cpp index 5d44c117d7..c97427a18c 100644 --- a/Libraries/LibRegex/RegexParser.cpp +++ b/Libraries/LibRegex/RegexParser.cpp @@ -365,7 +365,7 @@ ALWAYS_INLINE bool PosixExtendedParser::parse_bracket_expression(ByteCode& stack values.take_last(); // RangeExpressionDummy auto value1 = values.take_last(); - values.append({ CharacterCompareType::CharRange, static_cast(CharRange { (char)value1.value, (char)value2.value }) }); + values.append({ CharacterCompareType::CharRange, static_cast(CharRange { (u32)value1.value, (u32)value2.value }) }); } } -- cgit v1.2.3