grondilu / libdigest-raku

Raku implementation of various digests
Artistic License 2.0
27 stars 42 forks source link

Fix "Cannot unbox negative bigint into native unsigned integer" errors #22

Closed niner closed 2 years ago

niner commented 2 years ago

To work with native uints, all arguments and temporary results have to be typed this way. Otherwise values get boxed into Ints which are signed and bitwise operators will lead to confusing results.

This is required for the next Rakudo version which will be much more picky about int vs. uint. But at least it should also improve performance.