On 27 July 2016 at 09:57, Dean Rasheed <[email protected]> wrote:
> it could be
> coded using something like
>
>     accum->maxdig += NBASE - 1;
>     if (accum->maxdig > (INT_MAX - INT_MAX / NBASE) / (NBASE - 1))
>         Propagate carries...
>

Oops, that's not quite right because maxdig is actually epresents the
max possible value divided by NBASE-1 in mul_var(), so actually it
ought to have been accum->maxdig++ in the first line.

Regards,
Dean


-- 
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to