From ff2e9df705484251a4ef1aa983f6744f3e698d47 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 11 Nov 2024 10:02:06 -0800 Subject: [PATCH] fix incorrect match range list copying in new searcher threads --- src/dbgi/dbgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dbgi/dbgi.c b/src/dbgi/dbgi.c index 870a2d78..3979d149 100644 --- a/src/dbgi/dbgi.c +++ b/src/dbgi/dbgi.c @@ -1381,9 +1381,9 @@ di_search_thread__entry_point(void *p) MemoryCopy(items.v + off, chunk->v, sizeof(chunk->v[0])*chunk->count); for EachIndex(idx, chunk->count) { - items.v[off+idx].match_ranges = fuzzy_match_range_list_copy(arena, &items.v[idx].match_ranges); + items.v[off + idx].match_ranges = fuzzy_match_range_list_copy(arena, &items.v[off + idx].match_ranges); } - off+= chunk->count; + off += chunk->count; } }