mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 14:32:18 +00:00
LibDebug: Fix typo in DebugInfo::get_source_position
This commit is contained in:
parent
3c3a1726df
commit
68ff0788e5
Notes:
sideshowbarker
2024-07-18 12:02:01 +09:00
Author: https://github.com/itamar8910
Commit: 68ff0788e5
Pull-request: https://github.com/SerenityOS/serenity/pull/8149
Reviewed-by: https://github.com/gunnarbeutner
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ Optional<DebugInfo::SourcePosition> DebugInfo::get_source_position(u32 target_ad
|
|||
if (target_address < m_sorted_lines[0].address)
|
||||
return {};
|
||||
|
||||
// TODO: We can do a binray search here
|
||||
// TODO: We can do a binary search here
|
||||
for (size_t i = 0; i < m_sorted_lines.size() - 1; ++i) {
|
||||
if (m_sorted_lines[i + 1].address > target_address) {
|
||||
return SourcePosition::from_line_info(m_sorted_lines[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue