Fix assuming 32-bit pointers
This commit is contained in:
parent
6f8d831406
commit
4a22c3368f
@ -700,7 +700,7 @@ impl Display for char {
|
||||
impl<T> Pointer for *const T {
|
||||
fn fmt(&self, f: &mut Formatter) -> Result {
|
||||
f.flags |= 1 << (FlagV1::Alternate as u32);
|
||||
let ret = LowerHex::fmt(&(*self as u32), f);
|
||||
let ret = LowerHex::fmt(&(*self as usize), f);
|
||||
f.flags &= !(1 << (FlagV1::Alternate as u32));
|
||||
ret
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user