Skip to content

Commit b0618b9

Browse files
committed
Modify inplace binop instruction to use inplace_power_no_mod
Signed-off-by: snowapril <sinjihng@gmail.com>
1 parent c789490 commit b0618b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/frame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ impl ExecutingFrame<'_> {
16801680
bytecode::BinaryOperator::Add => vm._iadd(a_ref, b_ref),
16811681
bytecode::BinaryOperator::Multiply => vm._imul(a_ref, b_ref),
16821682
bytecode::BinaryOperator::MatrixMultiply => vm._imatmul(a_ref, b_ref),
1683-
bytecode::BinaryOperator::Power => vm._ipow(a_ref, b_ref),
1683+
bytecode::BinaryOperator::Power => vm._ipow(a_ref, b_ref, &vm.ctx.none()),
16841684
bytecode::BinaryOperator::Divide => vm._itruediv(a_ref, b_ref),
16851685
bytecode::BinaryOperator::FloorDivide => vm._ifloordiv(a_ref, b_ref),
16861686
bytecode::BinaryOperator::Modulo => vm._imod(a_ref, b_ref),

0 commit comments

Comments
 (0)