From 42d88af316ad0ab08837f1393dd491df9be17a65 Mon Sep 17 00:00:00 2001 From: xatier Date: Mon, 19 Feb 2024 04:46:09 -0600 Subject: [PATCH] Initialize NodeInSpan struct members properly Note: `NodePtr` is a `std::shard_ptr`, which has a default constructor with `nullptr`. --- src/Engine/gramambular2/reading_grid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Engine/gramambular2/reading_grid.h b/src/Engine/gramambular2/reading_grid.h index 450eb8d..cd2f35a 100644 --- a/src/Engine/gramambular2/reading_grid.h +++ b/src/Engine/gramambular2/reading_grid.h @@ -268,7 +268,7 @@ class ReadingGrid { struct NodeInSpan { NodePtr node; - size_t spanIndex; + size_t spanIndex = 0; }; // Find all nodes that overlap with the location. The return value is a list