mirror of
https://github.com/status-im/nim-stint.git
synced 2025-02-19 18:38:13 +00:00
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…
x
Reference in New Issue
Block a user