> I noticed one tiny obvious bug: base32_size calls ceil() on an integer
> argument after doing an integer division. You're better off adding four and
> then dividing by five, all in integer math.
Yes, you're right!
With len=1 it was producing 0...
Luckily it was only called with 20.
I'll fix my code as you suggest.
Thank you very much!!
> I noticed one tiny obvious bug: base32_size calls ceil() on an integer
> argument after doing an integer division. You're better off adding four and
> then dividing by five, all in integer math.
Yes, you're right!
With len=1 it was producing 0...
Luckily it was only called with 20.
I'll fix my code as you suggest.
Thank you very much!!