diff --git a/CHANGELOG.md b/CHANGELOG.md index a1ca0eaac2..e8ace083f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * crash when opening submodule ([#2895](https://github.com/gitui-org/gitui/issues/2895)) * when staging the last file in a directory, the first item after the directory is no longer skipped [[@Tillerino](https://github.com/Tillerino)] ([#2748](https://github.com/gitui-org/gitui/issues/2748)) * index-out-of-bounds panic when unstaging lines near the end of a diff ([#2953](https://github.com/gitui-org/gitui/issues/2953)) +* build failing on 32-bit targets due to unconditional `AtomicU64` usage ([#3045](https://github.com/gitui-org/gitui/issues/3045)) ## [0.28.1] - 2026-03-21 diff --git a/asyncgit/src/status.rs b/asyncgit/src/status.rs index 9728c6f33e..82310c502a 100644 --- a/asyncgit/src/status.rs +++ b/asyncgit/src/status.rs @@ -10,7 +10,7 @@ use crossbeam_channel::Sender; use std::{ hash::Hash, sync::{ - atomic::{AtomicU64, AtomicUsize, Ordering}, + atomic::{AtomicUsize, Ordering}, Arc, Mutex, }, }; @@ -50,7 +50,7 @@ pub struct AsyncStatus { pending: Arc, repo: RepoPath, /// Counter that increments after each completed fetch. - generation: Arc, + generation: Arc, } impl AsyncStatus { @@ -65,7 +65,7 @@ impl AsyncStatus { last: Arc::new(Mutex::new(Status::default())), sender, pending: Arc::new(AtomicUsize::new(0)), - generation: Arc::new(AtomicU64::new(0)), + generation: Arc::new(AtomicUsize::new(0)), } }