diff options
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/deque.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/deque.rs b/src/libstd/sync/deque.rs index 7feff127d69..7ce760040e6 100644 --- a/src/libstd/sync/deque.rs +++ b/src/libstd/sync/deque.rs @@ -363,7 +363,7 @@ impl<T: Send> Buffer<T> { // very unsafe method which the caller needs to treat specially in case a // race is lost. unsafe fn get(&self, i: int) -> T { - ptr::read_ptr(self.storage.offset(i & self.mask())) + ptr::read(self.storage.offset(i & self.mask())) } // Unsafe because this unsafely overwrites possibly uninitialized or |
