Fix assembly of second operand
This commit is contained in:
@@ -89,7 +89,7 @@ func assembleInstruction(in instruction) (*vm.Instruction, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(operands) >= 2 {
|
if len(operands) >= 2 {
|
||||||
op2, err := assembleOperand(operands[0])
|
op2, err := assembleOperand(operands[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "In second operand")
|
return nil, errors.Wrapf(err, "In second operand")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user