From 9b34e190051fa5861ea4102c428dae9e874c91e9 Mon Sep 17 00:00:00 2001 From: koniifer Date: Sun, 8 Sep 2024 19:32:37 +0100 Subject: [PATCH] fix stupid bug --- kernel/src/holeybytes/ecah.rs | 2 +- sysdata/programs/render_example/src/main.hb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/src/holeybytes/ecah.rs b/kernel/src/holeybytes/ecah.rs index 9bca359..616aaa8 100644 --- a/kernel/src/holeybytes/ecah.rs +++ b/kernel/src/holeybytes/ecah.rs @@ -120,7 +120,7 @@ pub fn handler(vm: &mut Vm) { 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 { match size { 1 => x86_in(addr) as u64, diff --git a/sysdata/programs/render_example/src/main.hb b/sysdata/programs/render_example/src/main.hb index 052e1cf..63d6390 100644 --- a/sysdata/programs/render_example/src/main.hb +++ b/sysdata/programs/render_example/src/main.hb @@ -1,4 +1,4 @@ -.{example} := @use("./examples/square.hb") +.{example} := @use("./examples/lines.hb") main := fn(): void { @inline(example)