mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
0fcfa7677d
Fix incomplete digit processing in power-of-2 base string conversion: - Add handling for remaining bits after processing all limbs - Ensure all significant bits are converted to digits - Maintain correct conversion for large numbers with partial bit patterns - Add comments clarifying the conversion process This fixes cases where the last few bits of a number might not be converted when the total bit count doesn't align perfectly with the base's bit width, ensuring complete and correct string representation. Co-authored-by: Claude <noreply@anthropic.com>