Fix number printing again.
This commit is contained in:
@@ -4,6 +4,7 @@ module Base(
|
|||||||
)
|
)
|
||||||
where
|
where
|
||||||
|
|
||||||
|
-- This is a comment
|
||||||
import File
|
import File
|
||||||
import Language.Rust.Data.Ident
|
import Language.Rust.Data.Ident
|
||||||
import Language.Rust.Data.Position
|
import Language.Rust.Data.Position
|
||||||
@@ -47,14 +48,14 @@ declareBaseStructure bitsize =
|
|||||||
impl fmt::UpperHex for $$sname {
|
impl fmt::UpperHex for $$sname {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
$@{upperPrints}
|
$@{upperPrints}
|
||||||
write!(f, "{:X}", self.value[0])
|
write!(f, "{:016X}", self.value[0])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::LowerHex for $$sname {
|
impl fmt::LowerHex for $$sname {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
$@{lowerPrints}
|
$@{lowerPrints}
|
||||||
write!(f, "{:x}", self.value[0])
|
write!(f, "{:016x}", self.value[0])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user