From 754e0da83bbb58df324c8c6dfa87df4c1b8216b4 Mon Sep 17 00:00:00 2001 From: iximeow Date: Tue, 18 Jun 2024 15:47:22 -0700 Subject: looks like that becomes memcpy, not ideal --- src/long_mode/display.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs index cf2edae..903809c 100644 --- a/src/long_mode/display.rs +++ b/src/long_mode/display.rs @@ -1315,7 +1315,7 @@ impl crate::long_mode::OperandVisitor for Coloriz }; // not actually fixed size, but this should optimize right i hope.. - self.f.write_fixed_size(s)?; + unsafe { self.f.write_lt_16(s)?; } } self.f.write_fixed_size("]") } @@ -1390,7 +1390,7 @@ impl crate::long_mode::OperandVisitor for Coloriz }; // not actually fixed size, but this should optimize right i hope.. - self.f.write_fixed_size(s)?; + unsafe { self.f.write_lt_16(s)?; } } write!(self.f, "]") } @@ -1454,7 +1454,7 @@ impl crate::long_mode::OperandVisitor for Coloriz }; // not actually fixed size, but this should optimize right i hope.. - self.f.write_fixed_size(s)?; + unsafe { self.f.write_lt_16(s)?; } } self.f.write_fixed_size("]") } -- cgit v1.1