From aefffde539c0649e3ebe3a81b2e15a25e760d29c Mon Sep 17 00:00:00 2001 From: r-c-f Date: Mon, 11 Jan 2021 06:42:06 -0600 Subject: Fix assertion crash on 32-bit systems Fixes #4687. --- alacritty_terminal/src/grid/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty_terminal/src/grid/storage.rs') 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 Storage { /// 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::>(), 32); + debug_assert_eq!(mem::size_of::>(), mem::size_of::() * 4); let a = self.compute_index(a); let b = self.compute_index(b); -- cgit v1.2.3-54-g00ecf