Skip to content

Commit 76d7de2

Browse files
cuiweixiejorgemmsilva
authored andcommitted
core: using math.MaxUint64 instead of 0xffffffffffffffff (ethereum#29094)
1 parent 286a071 commit 76d7de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/vm/instructions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func opCallDataCopy(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext
305305
)
306306
dataOffset64, overflow := dataOffset.Uint64WithOverflow()
307307
if overflow {
308-
dataOffset64 = 0xffffffffffffffff
308+
dataOffset64 = math.MaxUint64
309309
}
310310
// These values are checked for overflow during gas cost calculation
311311
memOffset64 := memOffset.Uint64()

0 commit comments

Comments
 (0)