about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2018-08-19 22:16:22 -0400
committerCorey Farwell <coreyf@rwell.org>2018-08-20 07:28:34 -0400
commit993fb934640b7e514f3c629c33a2698a83ed8c3e (patch)
tree98cb19e128d3d8a5c32b620bebc16fae8b3877b7 /src/libstd/sys
parent6bf6d50a6ff7685b4aa09172d9d09f03f250da9d (diff)
downloadrust-993fb934640b7e514f3c629c33a2698a83ed8c3e.tar.gz
rust-993fb934640b7e514f3c629c33a2698a83ed8c3e.zip
Replace usages of ptr::offset with ptr::{add,sub}.
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/windows/pipe.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/pipe.rs b/src/libstd/sys/windows/pipe.rs
index df1dd7401af..4b19519a57a 100644
--- a/src/libstd/sys/windows/pipe.rs
+++ b/src/libstd/sys/windows/pipe.rs
@@ -359,6 +359,6 @@ unsafe fn slice_to_end(v: &mut Vec<u8>) -> &mut [u8] {
     if v.capacity() == v.len() {
         v.reserve(1);
     }
-    slice::from_raw_parts_mut(v.as_mut_ptr().offset(v.len() as isize),
+    slice::from_raw_parts_mut(v.as_mut_ptr().add(v.len()),
                               v.capacity() - v.len())
 }