mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
fixed line number binary search for last range in line number map
This commit is contained in:
@@ -393,7 +393,7 @@ rdi_line_voffs_from_num(RDI_ParsedSourceLineMap *map, RDI_U32 linenum, RDI_U32 *
|
|||||||
{
|
{
|
||||||
RDI_U32 first = map->ranges[closest_i];
|
RDI_U32 first = map->ranges[closest_i];
|
||||||
RDI_U32 opl = map->ranges[closest_i + 1];
|
RDI_U32 opl = map->ranges[closest_i + 1];
|
||||||
if(opl < map->voff_count)
|
if(opl <= map->voff_count)
|
||||||
{
|
{
|
||||||
result = map->voffs + first;
|
result = map->voffs + first;
|
||||||
*n_out = opl - first;
|
*n_out = opl - first;
|
||||||
|
|||||||
Reference in New Issue
Block a user