forked from AbleOS/holey-bytes
fixup32
This commit is contained in:
parent
0c69d80fc2
commit
7e233f4ae1
|
@ -24,7 +24,7 @@ impl IndexMut<u8> for Registers {
|
|||
|
||||
impl Default for Registers {
|
||||
fn default() -> Self {
|
||||
Self([Value { u: 0 }; 60])
|
||||
Self([Value { i: 0 }; 60])
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,13 +55,12 @@ macro_rules! value_def {
|
|||
}
|
||||
|
||||
value_def! {
|
||||
u: u64, unsigned;
|
||||
s: i64, signed;
|
||||
i: u64, int;
|
||||
f: f64, float;
|
||||
}
|
||||
|
||||
impl Debug for Value {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||
self.unsigned().fmt(f)
|
||||
self.int().fmt(f)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue