mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +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: f8092455e2
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
|
ByteString arguments_string() const override
|
||||||
{
|
{
|
||||||
auto reps = id() < state().repetition_marks.size() ? state().repetition_marks.at(id()) : 0;
|
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
Add a link
Reference in a new issue