cmpute / dashu

A library set of arbitrary precision numbers implemented in Rust.
Apache License 2.0
74 stars 9 forks source link

lehmer: borrow lhs/rhs to be able to claim them back later #52

Closed eduardosm closed 4 months ago

eduardosm commented 4 months ago

Removes the need to use raw pointers and fixes undefined behavior detected by miri.

cmpute commented 4 months ago

Thanks for the fix! When I wrote the gcd code, I spent a lot of time trying to satisfy the borrow checker but failed...