From 7e5e398dc56f682b04d9218f59b8482d765c86f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mamy=20Andr=C3=A9-Ratsimbazafy?= Date: Wed, 25 Sep 2019 15:00:19 +0200 Subject: [PATCH] Fix bind many requirements for shr --- stint/private/int_bitwise_ops.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stint/private/int_bitwise_ops.nim b/stint/private/int_bitwise_ops.nim index 4660079..da06a21 100644 --- a/stint/private/int_bitwise_ops.nim +++ b/stint/private/int_bitwise_ops.nim @@ -60,7 +60,7 @@ func `shl`*(x: IntImpl, y: SomeInteger): IntImpl {.inline.}= result.hi = convert[HiType](x.lo shl (y - halfSize)) template createShr(name, operator: untyped) = - template name(x, y: SomeInteger): auto = + template name(x, y: distinct SomeInteger): auto = operator(x, y) func name*(x: IntImpl, y: SomeInteger): IntImpl {.inline.}=