Temp fix for int32.high returning zero

This commit is contained in:
coffeepots 2018-09-18 20:57:19 +01:00 committed by zah
parent 05b4745f2e
commit 766d1c4091
1 changed files with 1 additions and 1 deletions

View File

@ -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(