1
0
forked from Rativel/BurritOS

Fix loader test, only use one bin file in test_thread_context

This commit is contained in:
Quentin Legot
2023-04-05 16:47:43 +02:00
parent cfb58fd6b3
commit b804117127
3 changed files with 9 additions and 18 deletions

View File

@@ -225,9 +225,9 @@ fn get_string_param(addr: i64, maxlen: usize, machine: &Machine) -> Vec<char>{
let mut c = 1;
while c != 0 && i < maxlen {
c = machine.read_memory(1, addr as usize + i);
c = machine.read_memory(1, addr as usize + i) as u8;
//dest.push(c as char);
dest[i] = c as u8 as char;
dest[i] = c as char;
i += 1;
}