mirror of
https://github.com/status-im/nim-stew.git
synced 2025-02-10 03:04:33 +00:00
fix fromBytes call resolution (#140)
This commit is contained in:
parent
142a408ca7
commit
0c379cf1d8
@ -167,7 +167,7 @@ template fromBytes*(
|
||||
I: type SomeUnsignedInt,
|
||||
x: Leb128Buf): tuple[val: I, len: int8] =
|
||||
# x is not guaranteed to be valid, so we treat it like any other buffer!
|
||||
I.fromBytes(x.toOpenArray(), Leb128)
|
||||
fromBytes(I, x.toOpenArray(), Leb128)
|
||||
|
||||
func scan*(
|
||||
I: type SomeUnsignedInt,
|
||||
|
Loading…
x
Reference in New Issue
Block a user