Skip to content

Commit

Permalink
Make prime_count explicitly a u64
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Oct 12, 2023
1 parent d498139 commit 816122e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ pub const fn are_prime<const N: usize>() -> [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),+) => {
Expand Down

0 comments on commit 816122e

Please sign in to comment.