From 782ca64d92619e9609a5fcd5faa86d5546042959 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 8 Oct 2019 12:29:18 +0300 Subject: [PATCH] vm: accept uint16 in makeStackItem() --- pkg/vm/stack_item.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/vm/stack_item.go b/pkg/vm/stack_item.go index 27ec00621..f06fc0a29 100644 --- a/pkg/vm/stack_item.go +++ b/pkg/vm/stack_item.go @@ -23,6 +23,10 @@ func makeStackItem(v interface{}) StackItem { return &BigIntegerItem{ value: big.NewInt(val), } + case uint16: + return &BigIntegerItem{ + value: big.NewInt(int64(val)), + } case uint32: return &BigIntegerItem{ value: big.NewInt(int64(val)),