tiny update

This commit is contained in:
Able 2022-04-25 15:40:44 -05:00
parent 8dc1420b8a
commit 99b15238b6

View file

@ -1,7 +1,7 @@
#![no_std] #![no_std]
#![no_main] #![no_main]
use libwasm::{driver::DriverExitCode, get_input}; use libwasm::driver::DriverExitCode;
#[no_mangle] #[no_mangle]
fn start() -> i32 { fn start() -> i32 {
@ -11,9 +11,9 @@ fn start() -> i32 {
send_signal(PID(1), Signals::Quit); send_signal(PID(1), Signals::Quit);
rand = get_random(); rand = get_random();
ret = 1; ret = 1;
let x = b"Hi there"; let x = b"Hi there\n";
for i in x { for i in x {
print_char(*i as i64); print_char(*i as i32);
} }
} }
@ -39,5 +39,5 @@ use {
mod panic; mod panic;
extern "C" { extern "C" {
fn print_char(c: i64); fn print_char(c: i32);
} }