This commit is contained in:
Alexander Ivanov 2018-02-27 16:46:11 +02:00
parent 99b534f356
commit 8cd02732ad
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ proc toInt*(self: Rlp, IntType: typedesc): IntType =
raise newException(BadCastError, "")
for i in payloadStart ..< (payloadStart + payloadSize):
result = (result shl 8).toInt or (self.bytes[self.position + i]).toInt
result = cast[IntType](result shl 8) or cast[IntType](self.bytes[self.position + i])
proc toString*(self: Rlp): string =
if not isBlob():