Commit b59fd21c authored by Th3Fanbus's avatar Th3Fanbus Committed by Christian Duerr

Replace runtime debug assertions with static asserts on scrollback

parent f50ca1a5
......@@ -223,7 +223,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!(::std::mem::size_of::<Row<T>>() == 32);
assert_eq_size!(Row<T>, [u32; 8]);
let a = self.compute_index(a);
let b = self.compute_index(b);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment