forked from TrueCloudLab/neoneo-go
vm: introduce MaxArraySize constant
This is both for #373 and for interop functions that have to check some inputs.
This commit is contained in:
parent
cfa0c13322
commit
a357d99624
1 changed files with 4 additions and 2 deletions
|
@ -24,8 +24,10 @@ var (
|
|||
)
|
||||
|
||||
const (
|
||||
maxSHLArg = 256
|
||||
minSHLArg = -256
|
||||
// MaxArraySize is the maximum array size allowed in the VM.
|
||||
MaxArraySize = 1024
|
||||
maxSHLArg = 256
|
||||
minSHLArg = -256
|
||||
)
|
||||
|
||||
// VM represents the virtual machine.
|
||||
|
|
Loading…
Reference in a new issue