Fix number printing again.

This commit is contained in:
2020-01-07 18:51:07 -10:00
parent 00e59673f7
commit c1d2922ab2

View File

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