factor: treat ' +bignum' like non-bignum
commit95955e6746e847a366143121a8d0a61404cc740e
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Jul 2020 15:05:06 +0000 (8 08:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Jul 2020 15:11:57 +0000 (8 08:11 -0700)
tree1793bb10ba6aa3cd40c20662698956d5d1f48fcd
parentaf941bc523e414af0b17d06eb247afe7ddaf23b8
factor: treat ' +bignum' like non-bignum

* src/factor.c (strto2uintmax): Instead of here ...
(print_factors): ... skip spaces and '+' here, so that
bignums are treated like non-bignums.
* tests/misc/factor.pl (bug-gmp-plus_2_sup_128_plus_1): New test.
src/factor.c
tests/misc/factor.pl