diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2018-09-18 01:34:56 +0200 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-09-17 23:34:56 +0000 |
commit | 63a40df5203178bbea1ff1a6988e6d30b6f992f4 (patch) | |
tree | cdfef3dbeaf3fc53844574c58082c08cf4e7a202 /src/grid/storage.rs | |
parent | 55e675a3d89922d9d7966cd7bccf0da9d9eff654 (diff) | |
download | alacritty-63a40df5203178bbea1ff1a6988e6d30b6f992f4.tar.gz alacritty-63a40df5203178bbea1ff1a6988e6d30b6f992f4.zip |
Fix style issues
Diffstat (limited to 'src/grid/storage.rs')
-rw-r--r-- | src/grid/storage.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grid/storage.rs b/src/grid/storage.rs index ad94cf2b..af2bd35c 100644 --- a/src/grid/storage.rs +++ b/src/grid/storage.rs @@ -232,8 +232,8 @@ impl<T> Storage<T> { // Cast to a qword array to opt out of copy restrictions and avoid // drop hazards. Byte array is no good here since for whatever // reason LLVM won't optimized it. - let a_ptr = self.inner.as_mut_ptr().offset(a as isize) as *mut u64; - let b_ptr = self.inner.as_mut_ptr().offset(b as isize) as *mut u64; + let a_ptr = self.inner.as_mut_ptr().add(a) as *mut u64; + let b_ptr = self.inner.as_mut_ptr().add(b) as *mut u64; // Copy 1 qword at a time // |