fix stupid bug

This commit is contained in:
koniifer 2024-09-08 19:32:37 +01:00
parent 3ca7e13f3e
commit 9b34e19005
2 changed files with 2 additions and 2 deletions

View file

@ -120,7 +120,7 @@ pub fn handler(vm: &mut Vm) {
break 'wow; break 'wow;
} }
}; };
let addr = u16::from_le_bytes(msg_vec[1..3].try_into()); let addr = u16::from_le_bytes(msg_vec[1..3].try_into().unwrap());
let value = unsafe { let value = unsafe {
match size { match size {
1 => x86_in(addr) as u64, 1 => x86_in(addr) as u64,

View file

@ -1,4 +1,4 @@
.{example} := @use("./examples/square.hb") .{example} := @use("./examples/lines.hb")
main := fn(): void { main := fn(): void {
@inline(example) @inline(example)