mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
Fix regression on 32bit (windows) systems
This commit is contained in:
parent
5d2669dbd3
commit
6774ddaba2
@ -506,7 +506,7 @@ func (vm *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
|
||||
offset := stack.Pop().Int64()
|
||||
|
||||
data := make([]byte, 32)
|
||||
if len(closure.Args) >= int(offset) {
|
||||
if big.NewInt(int64(len(closure.Args))).Cmp(big.NewInt(offset)) >= 0 {
|
||||
l := int64(math.Min(float64(offset+32), float64(len(closure.Args))))
|
||||
|
||||
copy(data, closure.Args[offset:l])
|
||||
|
Loading…
Reference in New Issue
Block a user