mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-05 15:27:04 +00:00
LibRegex: Print OpCode_Repeat's offset as ssize_t
This commit is contained in:
committed by
Ali Mohammad Pur
parent
897883f947
commit
f8092455e2
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user