Fix bind many requirements for shr
This commit is contained in:
parent
85797d2862
commit
7e5e398dc5
|
@ -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.}=
|
||||
|
|
Loading…
Reference in New Issue