We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de660e commit c591923Copy full SHA for c591923
crossbeam-skiplist/src/base.rs
@@ -36,7 +36,7 @@ impl<K, V> Index<usize> for Tower<K, V> {
36
fn index(&self, index: usize) -> &Atomic<Node<K, V>> {
37
// This implementation is actually unsafe since we don't check if the
38
// index is in-bounds. But this is fine since this is only used internally.
39
- unsafe { self.pointers.get_unchecked(index) }
+ unsafe { &*(&self.pointers as *const Atomic<Node<K, V>>).add(index) }
40
}
41
42
0 commit comments