fixed test_arithmetic_correct_arguments_order

This commit is contained in:
Svyatoslav Nikolsky 2016-11-28 15:25:38 +03:00
parent 5b56426ff5
commit 5a38b6a3b4
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ pub fn eval_script(
Opcode::OP_14 |
Opcode::OP_15 |
Opcode::OP_16 => {
let value = (opcode as u8).wrapping_sub(Opcode::OP_1 as u8 - 1);
let value = (opcode as i32).wrapping_sub(Opcode::OP_1 as i32 - 1);
stack.push(Num::from(value).to_bytes());
},
Opcode::OP_CAT | Opcode::OP_SUBSTR | Opcode::OP_LEFT | Opcode::OP_RIGHT |