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.
|
## 0x20, Compute Keccak-256 hash.
|
||||||
let (pos, len) = (startPos.toInt, length.toInt)
|
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")
|
raise newException(OutOfBoundsRead, "Out of bounds memory access")
|
||||||
|
|
||||||
computation.gasMeter.consumeGas(
|
computation.gasMeter.consumeGas(
|
||||||
|
|
Loading…
Reference in New Issue