From 816122e0fd89925c6048a073ef8b33d235cdc1bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= Date: Thu, 12 Oct 2023 23:35:48 +0200 Subject: [PATCH] Make prime_count explicitly a u64 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index bcedbe0..8ddf8e9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -354,7 +354,7 @@ pub const fn are_prime() -> [bool; N] { /// ``` pub const fn moebius(x: core::num::NonZeroU64) -> i8 { let mut x = x.get(); - let mut prime_count = 0; + let mut prime_count: u64 = 0; macro_rules! handle_factor { ($($factor:expr),+) => {