diff options
author | Itamar <itamar8910@gmail.com> | 2021-06-11 14:38:09 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-19 14:51:18 +0200 |
commit | 68ff0788e5903aad857210a2b6537c4e6b6034b2 (patch) | |
tree | 515cb86ebbf732c8069c1a1b2cd19c7e978f1f1b /Userland/Libraries | |
parent | 3c3a1726df847aff9db73862040d9f7a3b9fc907 (diff) | |
download | serenity-68ff0788e5903aad857210a2b6537c4e6b6034b2.zip |
LibDebug: Fix typo in DebugInfo::get_source_position
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibDebug/DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDebug/DebugInfo.cpp b/Userland/Libraries/LibDebug/DebugInfo.cpp index 3d38da4d91..9d378ed66a 100644 --- a/Userland/Libraries/LibDebug/DebugInfo.cpp +++ b/Userland/Libraries/LibDebug/DebugInfo.cpp @@ -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]); |