forked from AbleOS/ableos
fix stupid bug
This commit is contained in:
parent
3ca7e13f3e
commit
9b34e19005
|
@ -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,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.{example} := @use("./examples/square.hb")
|
.{example} := @use("./examples/lines.hb")
|
||||||
|
|
||||||
main := fn(): void {
|
main := fn(): void {
|
||||||
@inline(example)
|
@inline(example)
|
||||||
|
|
Loading…
Reference in a new issue