mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-03 07:45:18 +00:00
Modexp fix example 1 (returned to early for ints of length 1)
This commit is contained in:
parent
2521ff1950
commit
949c5a1dc6
@ -63,7 +63,7 @@ proc rangeToPaddedUint256*(x: seq[byte], first, last: int): Uint256 =
|
|||||||
let lo = max(0, first)
|
let lo = max(0, first)
|
||||||
let hi = min(x.high, last)
|
let hi = min(x.high, last)
|
||||||
|
|
||||||
if not(lo < hi):
|
if not(lo <= hi):
|
||||||
return # 0
|
return # 0
|
||||||
|
|
||||||
result = UInt256.fromBytesBE(
|
result = UInt256.fromBytesBE(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user