nim-lang / bigints

BigInts for Nim
MIT License
124 stars 32 forks source link

Fix `shl` and `shr` #134

Closed konsumlamm closed 1 year ago

konsumlamm commented 1 year ago

shl could create invalid zero values, by shifting 0.

shr could raise an exception when the shift is too big.

konsumlamm commented 1 year ago

@narimiran can this be merged?