Fix assuming 32-bit pointers

This commit is contained in:
John Hodge 2015-02-28 22:44:10 +08:00
parent 6f8d831406
commit 4a22c3368f

View File

@ -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
}