fixed line number binary search for last range in line number map

This commit is contained in:
Nikita
2024-07-22 15:59:50 -07:00
committed by Ryan Fleury
parent ce7c8d5244
commit e18e136f82
+1 -1
View File
@@ -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 opl = map->ranges[closest_i + 1];
if(opl < map->voff_count)
if(opl <= map->voff_count)
{
result = map->voffs + first;
*n_out = opl - first;