@@ -199,7 +199,7 @@ impl AtomicBool {
199199 #[ inline]
200200 #[ stable]
201201 pub fn load ( & self , order : Ordering ) -> bool {
202- unsafe { atomic_load ( self . v . get ( ) as * const usize , order) > 0 }
202+ unsafe { atomic_load ( self . v . get ( ) , order) > 0 }
203203 }
204204
205205 /// Stores a value into the bool.
@@ -438,7 +438,7 @@ impl AtomicIsize {
438438 /// ```
439439 #[ inline]
440440 pub fn load ( & self , order : Ordering ) -> isize {
441- unsafe { atomic_load ( self . v . get ( ) as * const isize , order) }
441+ unsafe { atomic_load ( self . v . get ( ) , order) }
442442 }
443443
444444 /// Stores a value into the isize.
@@ -615,7 +615,7 @@ impl AtomicUsize {
615615 /// ```
616616 #[ inline]
617617 pub fn load ( & self , order : Ordering ) -> usize {
618- unsafe { atomic_load ( self . v . get ( ) as * const usize , order) }
618+ unsafe { atomic_load ( self . v . get ( ) , order) }
619619 }
620620
621621 /// Stores a value into the usize.
@@ -796,7 +796,7 @@ impl<T> AtomicPtr<T> {
796796 #[ stable]
797797 pub fn load ( & self , order : Ordering ) -> * mut T {
798798 unsafe {
799- atomic_load ( self . p . get ( ) as * const * mut T , order) as * mut T
799+ atomic_load ( self . p . get ( ) , order) as * mut T
800800 }
801801 }
802802
@@ -1070,7 +1070,7 @@ impl AtomicInt {
10701070
10711071 #[ inline]
10721072 pub fn load ( & self , order : Ordering ) -> int {
1073- unsafe { atomic_load ( self . v . get ( ) as * const int , order) }
1073+ unsafe { atomic_load ( self . v . get ( ) , order) }
10741074 }
10751075
10761076 #[ inline]
@@ -1123,7 +1123,7 @@ impl AtomicUint {
11231123
11241124 #[ inline]
11251125 pub fn load ( & self , order : Ordering ) -> uint {
1126- unsafe { atomic_load ( self . v . get ( ) as * const uint , order) }
1126+ unsafe { atomic_load ( self . v . get ( ) , order) }
11271127 }
11281128
11291129 #[ inline]
0 commit comments