Skip to content

Commit

Permalink
Fix overflow issue for 32bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Mawdie committed Dec 5, 2024
1 parent 6c26e4e commit fffca20
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 fffca20

Please # to comment.