mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
LibRegex: Print OpCode_Repeat's offset as ssize_t
This commit is contained in:
parent
897883f947
commit
f8092455e2
Notes:
github-actions[bot]
2024-12-13 09:01:41 +00:00
Author: https://github.com/alimpfard Commit: https://github.com/LadybirdBrowser/ladybird/commit/f8092455e20 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2410 Reviewed-by: https://github.com/LucasChollet Reviewed-by: https://github.com/konradekk
1 changed files with 7 additions and 1 deletions
|
@ -787,7 +787,13 @@ public:
|
|||
ByteString arguments_string() const override
|
||||
{
|
||||
auto reps = id() < state().repetition_marks.size() ? state().repetition_marks.at(id()) : 0;
|
||||
return ByteString::formatted("offset={} count={} id={} rep={}, sp: {}", offset(), count() + 1, id(), reps + 1, state().string_position);
|
||||
return ByteString::formatted("offset={} [&{}] count={} id={} rep={}, sp: {}",
|
||||
static_cast<ssize_t>(offset()),
|
||||
state().instruction_position - offset(),
|
||||
count() + 1,
|
||||
id(),
|
||||
reps + 1,
|
||||
state().string_position);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue