mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
LibRegex: Simplify ternary condition in RegexByteCode
No functional changes.
This commit is contained in:
parent
92f85d180e
commit
930ac9898f
Notes:
github-actions[bot]
2025-07-21 23:25:13 +00:00
Author: https://github.com/gmta
Commit: 930ac9898f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5548
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/shannonbooth
1 changed files with 1 additions and 1 deletions
|
@ -957,7 +957,7 @@ Vector<ByteString> OpCode_Compare::variable_arguments_to_byte_string(Optional<Ma
|
||||||
Vector<ByteString> result;
|
Vector<ByteString> result;
|
||||||
|
|
||||||
size_t offset { state().instruction_position + 3 };
|
size_t offset { state().instruction_position + 3 };
|
||||||
RegexStringView const& view = ((input.has_value()) ? input.value().view : StringView {});
|
RegexStringView const& view = input.has_value() ? input.value().view : StringView {};
|
||||||
|
|
||||||
for (size_t i = 0; i < arguments_count(); ++i) {
|
for (size_t i = 0; i < arguments_count(); ++i) {
|
||||||
auto compare_type = (CharacterCompareType)m_bytecode->at(offset++);
|
auto compare_type = (CharacterCompareType)m_bytecode->at(offset++);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue