mirror of
https://github.com/status-im/nim-rlp.git
synced 2025-01-09 22:06:00 +00:00
fix a compilation issue
This commit is contained in:
parent
796222a9d2
commit
f481a72bbb
7
rlp.nim
7
rlp.nim
@ -396,9 +396,10 @@ template decode*(bytes: BytesRange, T: typedesc): untyped =
|
||||
|
||||
template decode*(bytes: openarray[byte], T: typedesc): T =
|
||||
var bytesCopy = @bytes
|
||||
decode(bytesCopy.toRange(), T)
|
||||
template decode*(bytes: seq[byte], T: typedesc): T =
|
||||
decode(bytes.toRange(), T)
|
||||
decode(bytesCopy.toRange, T)
|
||||
|
||||
template decode*(bytes: seq[byte], T: typedesc): untyped =
|
||||
decode(bytes.toRange, T)
|
||||
|
||||
proc append*(writer: var RlpWriter; rlp: Rlp) =
|
||||
appendRawBytes(writer, rlp.rawData)
|
||||
|
Loading…
x
Reference in New Issue
Block a user