day 8, part 2 (fixed)

main
Inga 🏳‍🌈 1 year ago
parent c949603386
commit 47a747650b
  1. 2
      day08-hard/src/main.zig

@ -133,7 +133,7 @@ fn getStartingNodes(nodes: *const Nodes) CurrentNodes {
var starting_nodes = std.mem.zeroes(CurrentNodes);
var current_index: usize = 0;
for (nodes.*) |node| {
if (node.current_label != 0 and node.current_label & FIVE_BITS == 0) {
if (node.line_index != 0 and node.current_label & FIVE_BITS == 0) {
if (current_index == 0) {
for (&starting_nodes) |*starting_node| {
starting_node.* = node.line_index;

Loading…
Cancel
Save