From 596901b1749ebfb95e8d65c328959db22960dd4c Mon Sep 17 00:00:00 2001 From: onyinyang Date: Thu, 11 Jan 2024 19:24:55 -0500 Subject: [PATCH] Fixes bug in parse_into_buckets that skips adding every 4th bridgeline --- crates/lox-distributor/src/resource_parser.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/lox-distributor/src/resource_parser.rs b/crates/lox-distributor/src/resource_parser.rs index 7d01aa1..136578a 100644 --- a/crates/lox-distributor/src/resource_parser.rs +++ b/crates/lox-distributor/src/resource_parser.rs @@ -76,8 +76,9 @@ pub fn parse_into_buckets( count += 1; } else { buckets.push(bucket); - count = 0; bucket = [BridgeLine::default(); MAX_BRIDGES_PER_BUCKET]; + bucket[0] = bridgeline; + count = 1; } } // Handle the extra buckets that were not allocated already