Fix bind many requirements for shr

This commit is contained in:
Mamy André-Ratsimbazafy 2019-09-25 15:00:19 +02:00
parent 85797d2862
commit 7e5e398dc5
No known key found for this signature in database
GPG Key ID: 7B88AD1FE79492E1
1 changed files with 1 additions and 1 deletions

View File

@ -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.}=