diff options
Diffstat (limited to 'core/vm/stack_table.go')
-rw-r--r-- | core/vm/stack_table.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/stack_table.go b/core/vm/stack_table.go index ce4727a71..0936ef06f 100644 --- a/core/vm/stack_table.go +++ b/core/vm/stack_table.go @@ -12,8 +12,8 @@ func makeStackFunc(pop, push int) stackValidationFunc { return err } - if push > 0 && int64(stack.len()-pop+push) > params.StackLimit.Int64() { - return fmt.Errorf("stack limit reached %d (%d)", stack.len(), params.StackLimit.Int64()) + if push > 0 && stack.len()-pop+push > int(params.StackLimit) { + return fmt.Errorf("stack limit reached %d (%d)", stack.len(), params.StackLimit) } return nil } |