diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-11-19 18:45:36 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-27 21:32:41 +0100 |
commit | 3db8ced4c7a3b17b3787892748a38824b2ebe95d (patch) | |
tree | 20459aa36bd6b231b1b3fe2fb164ff2e67d9459c /Libraries/LibRegex/RegexParser.cpp | |
parent | 92ea9ed4a538bb906c1047fd3e4ec4d6b5cf3520 (diff) | |
download | serenity-3db8ced4c7a3b17b3787892748a38824b2ebe95d.zip |
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.
Diffstat (limited to 'Libraries/LibRegex/RegexParser.cpp')
-rw-r--r-- | Libraries/LibRegex/RegexParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<ByteCodeValueType>(CharRange { (char)value1.value, (char)value2.value }) }); + values.append({ CharacterCompareType::CharRange, static_cast<ByteCodeValueType>(CharRange { (u32)value1.value, (u32)value2.value }) }); } } |