Skip to content

Commit

Permalink
fix: build on platforms without 64-bit atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
cinerea0 authored and Byron committed Jan 9, 2022
1 parent 4b71a56 commit 756ca54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{borrow::Cow, io, path::Path};
#[cfg(feature = "aggregate-scan-progress")]
use std::{
sync::{
atomic::{AtomicU64, Ordering},
atomic::{AtomicUsize, Ordering},
Arc,
},
thread,
Expand Down Expand Up @@ -37,7 +37,7 @@ pub fn aggregate(
let mut inodes = InodeFilter::default();

#[cfg(feature = "aggregate-scan-progress")]
let shared_count = Arc::new(AtomicU64::new(0));
let shared_count = Arc::new(AtomicUsize::new(0));

#[cfg(feature = "aggregate-scan-progress")]
if let Some(mut out) = err {
Expand Down

0 comments on commit 756ca54

Please sign in to comment.