From 0c379cf1d8d3d9db07af108cc78ff542b2105914 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Mon, 12 Sep 2022 14:29:03 +0200 Subject: [PATCH] fix fromBytes call resolution (#140) --- stew/leb128.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stew/leb128.nim b/stew/leb128.nim index 9073718..f0cfec7 100644 --- a/stew/leb128.nim +++ b/stew/leb128.nim @@ -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,