From 6ad00abdaa9a727cbd3d9be8aa11c84ed5429cef Mon Sep 17 00:00:00 2001 From: William Ball Date: Sat, 17 Jul 2021 10:50:31 -0400 Subject: [PATCH] changed nodes to be a u64 --- fractal_dimension/circle_counting_new/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fractal_dimension/circle_counting_new/src/lib.rs b/fractal_dimension/circle_counting_new/src/lib.rs index 28628cb..d36b5db 100644 --- a/fractal_dimension/circle_counting_new/src/lib.rs +++ b/fractal_dimension/circle_counting_new/src/lib.rs @@ -15,7 +15,7 @@ pub fn fractal_dimension( let mut totals = vec![root.len(); n]; let mut current = vec![(root, std::usize::MAX, false)]; let mut next = vec![]; - let mut nodes = 1; + let mut nodes: u64 = 1; let xs: Vec = (1..=n) // .map(|x| (x as f64 * upper_bound / (n as f64)))