Skip to content

Commit

Permalink
Initialize NodeInSpan struct members properly
Browse files Browse the repository at this point in the history
  • Loading branch information
xatier committed Feb 19, 2024
1 parent fcc0aa1 commit 583c740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Engine/gramambular2/reading_grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ class ReadingGrid {
Node::OverrideType overrideType);

struct NodeInSpan {
NodePtr node;
size_t spanIndex;
NodePtr node = nullptr;
size_t spanIndex = 0;
};

// Find all nodes that overlap with the location. The return value is a list
Expand Down

0 comments on commit 583c740

Please # to comment.