Fix assertion crash on 32-bit systems

Fixes #4687.
This commit is contained in:
r-c-f authored and Christian Duerr committed 2021-02-14 20:43:13 +00:00
1 parent a852eb85d5
commit 9ddd660da1
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -5,6 +5,12 @@ The sections should follow the order `Packaging`, `Added`, `Changed`, `Fixed` an
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## 0.8.0-dev
### Fixed
- Crash due to assertion failure on 32-bit architectures
## 0.7.1
### Fixed
+1 -1
View File
@@ -156,7 +156,7 @@ impl<T> Storage<T> {
/// instructions. This implementation achieves the swap in only 8 movups
/// instructions.
pub fn swap(&mut self, a: usize, b: usize) {
debug_assert_eq!(std::mem::size_of::<Row<T>>(), 32);
debug_assert_eq!(mem::size_of::<Row<T>>(), mem::size_of::<usize>() * 4);
let a = self.compute_index(a);
let b = self.compute_index(b);