mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-16 06:15:02 +01:00
small changes
This commit is contained in:
parent
329c33f3cb
commit
5cc058267b
6 changed files with 14 additions and 15 deletions
|
|
@ -27,7 +27,7 @@ fn interpret(pgm: Vec<char>) -> String {
|
|||
'-' => mem[pointer] = mem[pointer].wrapping_sub(1),
|
||||
'.' => out.push(mem[pointer] as u8 as char),
|
||||
',' => {
|
||||
stdin().read(&mut in_buffer).unwrap();
|
||||
stdin().read_exact(&mut in_buffer).unwrap();
|
||||
mem[pointer] = in_buffer[0] as u8;
|
||||
}
|
||||
'[' => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue