diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/armv8/a64.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs index c0d61e6..5ea7f8e 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -2865,7 +2865,11 @@ impl Display for Operand { write!(fmt, "#{:#x}", *i) }, Operand::ImmediateDouble(d) => { - write!(fmt, "#{:0.1}", d) + if *d as i64 as f64 == *d { + write!(fmt, "#{:0.1}", d) + } else { + write!(fmt, "#{:0.}", d) + } }, Operand::Imm16(i) => { write!(fmt, "#{:#x}", *i) |