Fix assuming 32-bit pointers
This commit is contained in:
parent
6f8d831406
commit
4a22c3368f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue