summaryrefslogtreecommitdiffstats
path: root/alacritty_terminal
diff options
context:
space:
mode:
authorr-c-f <ryan.farley@gmx.com>2021-01-11 06:42:06 -0600
committerGitHub <noreply@github.com>2021-01-11 12:42:06 +0000
commitaefffde539c0649e3ebe3a81b2e15a25e760d29c (patch)
treef70c1d07c1b218d0974d8a46da525bca036b7f6e /alacritty_terminal
parent7045a1ec07634701ef75bcf7872bab3c9199b4f3 (diff)
Fix assertion crash on 32-bit systems
Fixes #4687.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/src/grid/storage.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/grid/storage.rs b/alacritty_terminal/src/grid/storage.rs
index a7d4adcf..f9c4b2cf 100644
--- a/alacritty_terminal/src/grid/storage.rs
+++ b/alacritty_terminal/src/grid/storage.rs
@@ -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);