mirror of
https://github.com/Noratrieb/crapderive.git
synced 2026-01-15 09:05:06 +01:00
good error
This commit is contained in:
parent
72fbc4e55a
commit
72687d4167
2 changed files with 12 additions and 4 deletions
|
|
@ -120,7 +120,7 @@ impl InterpretCtx {
|
|||
let is_ok = std::io::stdin().read_exact(slice).is_ok();
|
||||
*self.reg_mut(Register(0)) = if is_ok { 0 } else { 1 };
|
||||
}
|
||||
_ => panic!("invalid interrupt!"),
|
||||
_ => unreachable!("checked in compiler"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue