mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 05:14:14 +00:00
Temp fix for int32.high returning zero
This commit is contained in:
parent
05b4745f2e
commit
766d1c4091
@ -193,7 +193,7 @@ op sha3, inline = true, startPos, length:
|
||||
## 0x20, Compute Keccak-256 hash.
|
||||
let (pos, len) = (startPos.toInt, length.toInt)
|
||||
|
||||
if pos < 0 or len < 0 or pos > int32.high:
|
||||
if pos < 0 or len < 0 or pos > 2147483648:
|
||||
raise newException(OutOfBoundsRead, "Out of bounds memory access")
|
||||
|
||||
computation.gasMeter.consumeGas(
|
||||
|
Loading…
x
Reference in New Issue
Block a user