Aatch / ramp

RAMP - Rust Arithmetic in Multiple Precision
Apache License 2.0
261 stars 38 forks source link

Test num_base_digits for !base.is_power_of_2(). Fix. #66

Closed Phaiax closed 8 years ago

Phaiax commented 8 years ago

Doc comment clarifying, that the returned value may be overestimated.

Fix the function: It added one, even on overestimated results, effectively overestimating by 2.

Aatch commented 8 years ago

LGTM

Aatch commented 8 years ago

Travis apparently didn't want to test this PR, I'll trust it's ok though.