aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/display.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-18 15:47:22 -0700
committeriximeow <me@iximeow.net>2024-06-18 15:47:22 -0700
commit754e0da83bbb58df324c8c6dfa87df4c1b8216b4 (patch)
treec1df60290842bb375b9695c931d88a82ec9fa586 /src/long_mode/display.rs
parent4fb654284c9dcd2409300b58b11f3a6906d7e4f8 (diff)
looks like that becomes memcpy, not ideal
Diffstat (limited to 'src/long_mode/display.rs')
-rw-r--r--src/long_mode/display.rs6
1 files 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 <T: DisplaySink, Y: YaxColors> 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 <T: DisplaySink, Y: YaxColors> 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 <T: DisplaySink, Y: YaxColors> 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("]")
}