check AtomicU64 with target_has_atomic, fixed #924

This commit is contained in:
zonyitoo
2022-08-16 18:04:17 +08:00
parent 027ef081ce
commit c2bc06c2ba
+2 -2
View File
@@ -2,9 +2,9 @@
use std::sync::atomic::Ordering;
#[cfg(not(any(target_arch = "mips", target_arch = "powerpc")))]
#[cfg(target_has_atomic = "64")]
type FlowCounter = std::sync::atomic::AtomicU64;
#[cfg(any(target_arch = "mips", target_arch = "powerpc"))]
#[cfg(not(target_has_atomic = "64"))]
type FlowCounter = std::sync::atomic::AtomicU32;
/// Connection flow statistic