fix fromBytes call resolution (#140)

This commit is contained in:
Jacek Sieka 2022-09-12 14:29:03 +02:00 committed by GitHub
parent 142a408ca7
commit 0c379cf1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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