diff options
author | cinerea0 <cinerea0@disroot.org> | 2022-01-08 22:48:39 -0500 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-01-09 13:40:23 +0800 |
commit | 756ca542a73575df581433fdd84cee8f4bef99b5 (patch) | |
tree | 56ed2e16df6e6bd0d16f6d0a631fdb862515645a /src | |
parent | 4b71a56bc428663249b2f20dbf19507ad559967d (diff) |
fix: build on platforms without 64-bit atomics
Diffstat (limited to 'src')
-rw-r--r-- | src/aggregate.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aggregate.rs b/src/aggregate.rs index 1255515..9d0f266 100644 --- a/src/aggregate.rs +++ b/src/aggregate.rs @@ -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, @@ -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 { |