diff --git a/plugins/builtin/source/content/providers/intel_hex_provider.cpp b/plugins/builtin/source/content/providers/intel_hex_provider.cpp index 8ceeb8f09..99c430542 100644 --- a/plugins/builtin/source/content/providers/intel_hex_provider.cpp +++ b/plugins/builtin/source/content/providers/intel_hex_provider.cpp @@ -259,7 +259,7 @@ namespace hex::plugin::builtin { decltype(this->m_data)::Interval closestInterval = { 0, 0 }; for (const auto &[interval, data] : intervals) { - if (interval.start < closestInterval.end) + if (interval.start <= closestInterval.end) closestInterval = interval; } return { Region { closestInterval.start, (closestInterval.end - closestInterval.start) + 1}, true };