Commit 703daa85 authored by Raphael Rieu-Helft's avatar Raphael Rieu-Helft
Browse files

Printer: print one digit instead of zero by default

This fixes a bug that printed an empty string for 0 if the number of digits was unspecified.
parent 0dd92f60
......@@ -188,7 +188,7 @@ let print_in_base radix digits fmt i =
let d,m = BigInt.euclidean_div_mod i radix in
aux (digits - 1) d;
Format.pp_print_char fmt (char_of_int (BigInt.to_int m)) in
aux (Opt.get_def 0 digits) i
aux (Opt.get_def 1 digits) i
let to_small_integer i =
BigInt.to_int i.il_int
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment