Skip to content

Commit

Permalink
Fix load_context_module triggering unreachable code in unify_atom
Browse files Browse the repository at this point in the history
  • Loading branch information
adri326 committed Jan 7, 2025
1 parent 2458005 commit 2a0e3b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/machine/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4876,11 +4876,11 @@ impl Machine {
step_or_fail!(self, self.machine_st.p = self.machine_st.cp);
}
&Instruction::CallLoadContextModule => {
self.load_context_module(self.machine_st.registers[1]);
self.load_context_module(self.deref_register(1));
step_or_fail!(self, self.machine_st.p += 1);
}
&Instruction::ExecuteLoadContextModule => {
self.load_context_module(self.machine_st.registers[1]);
self.load_context_module(self.deref_register(1));
step_or_fail!(self, self.machine_st.p = self.machine_st.cp);
}
&Instruction::CallLoadContextStream => {
Expand Down

0 comments on commit 2a0e3b2

Please sign in to comment.