reset instruction pointers with calls, make HCPrinter::range_from safe (#1233)

This commit is contained in:
Mark Thom
2022-01-31 21:24:19 -07:00
parent 4b71607215
commit 37e34c5209
3 changed files with 10 additions and 2 deletions

View File

@@ -962,6 +962,8 @@ impl Machine {
match self.find_living_dynamic_else(p) {
Some((p, next_i)) => {
self.machine_st.p = p;
self.machine_st.oip = 0;
self.machine_st.iip = 0;
match self.machine_st.dynamic_mode {
FirstOrNext::First if next_i == 0 => {
@@ -1044,6 +1046,8 @@ impl Machine {
match self.find_living_dynamic_else(p) {
Some((p, next_i)) => {
self.machine_st.p = p;
self.machine_st.oip = 0;
self.machine_st.iip = 0;
match self.machine_st.dynamic_mode {
FirstOrNext::First if next_i == 0 => {