Re: [PATCH] wide-int: Fix estimation of buffer sizes for wide_int printing [PR111800]

2023-10-14 Thread Richard Biener
> Am 14.10.2023 um 10:21 schrieb Jakub Jelinek : > > Hi! > > As mentioned in the PR, my estimations on needed buffer size for wide_int > and especially widest_int printing were incorrect, I've used get_len () > in the estimations, but that is true only for !wi::neg_p (x) values. > Under the h

[PATCH] wide-int: Fix estimation of buffer sizes for wide_int printing [PR111800]

2023-10-14 Thread Jakub Jelinek
Hi! As mentioned in the PR, my estimations on needed buffer size for wide_int and especially widest_int printing were incorrect, I've used get_len () in the estimations, but that is true only for !wi::neg_p (x) values. Under the hood, we have 3 ways to print numbers. print_decs which if if ((wi.