File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -482,7 +482,11 @@ function TreeSet(
482482
483483 # nvmax is the number of vertices in the largest tree of the forest
484484 # In a tree, the number of vertices is equal to the number of edges plus one
485- nvmax = maximum (num_edges_per_tree) + 1
485+ nvmax = zero (T)
486+ for ne_tree in num_edges_per_tree
487+ nvmax = max (nvmax, ne_tree)
488+ end
489+ nvmax = nvmax + 1
486490
487491 # Create a queue with a fixed size nvmax
488492 queue = Vector {T} (undef, nvmax)
Original file line number Diff line number Diff line change 154154 b64 = @b fast_coloring (A64, problem, algo)
155155 b32 = @b fast_coloring (A32, problem, algo)
156156 # check that we allocate no more than 50% + epsilon with Int32
157- if decompression == :direct
158- @test b32. bytes < 0.6 * b64. bytes
159- else
160- @test_broken b32. bytes < 0.6 * b64. bytes
161- end
157+ @test b32. bytes < 0.6 * b64. bytes
162158 end
163159 end
164160end ;
You can’t perform that action at this time.
0 commit comments