Skip to content

Commit

Permalink
Merge pull request #5306 from ubamrein/fix-32bit-target
Browse files Browse the repository at this point in the history
Fix build for 32bit targets (usize == u32)
  • Loading branch information
syrusakbary authored Dec 17, 2024
2 parents 5708ca8 + 88aa948 commit 8b1f1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vm/src/threadconditions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl ThreadConditions {
}

// fetch the notifier
if self.inner.map.len() >= 1 << 32 {
if self.inner.map.len() as u64 >= 1u64 << 32 {
return Err(WaiterError::TooManyWaiters);
}
self.inner.map.entry(dst).or_default().push(NotifyWaiter {
Expand Down

0 comments on commit 8b1f1b1

Please sign in to comment.