Changing to overflowing_pow

This commit is contained in:
Tomusdrw 2016-01-15 14:48:07 +01:00
parent 5e2721f964
commit 2d2e4fc838

View File

@ -759,7 +759,8 @@ impl Interpreter {
instructions::EXP => {
let base = stack.pop_back();
let expon = stack.pop_back();
stack.push(base.pow(expon));
let (res, _overflow) = base.overflowing_pow(expon);
stack.push(res);
},
instructions::NOT => {
let a = stack.pop_back();