forked from Rativel/BurritOS
Fix loader test, only use one bin file in test_thread_context
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user