[PATCH 2/2] chinrem_gcd: return correct integer content when GCD is a number.
authorAlexei Sheplyakov <alexei.sheplyakov@gmail.com>
Fri, 3 Dec 2010 23:36:50 +0000 (00:36 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Sat, 4 Dec 2010 07:41:54 +0000 (08:41 +0100)
commit59fa68b8930779dfc419291d028b57b0d91d33d0
tree891ce9200315ababbb576fe93c3365cbc311d9c8
parenteccdca0011fc44bc14cfcb7ffd82dbcb653e19a5
[PATCH 2/2] chinrem_gcd: return correct integer content when GCD is a number.

This patch fixes a silly typo and makes chinrem_gcd work correctly with
polynomials which are "almost" (up to an integer coefficient) relatively
prime.

Thanks to Ernst Moritz Hahn for a bug report and a test case.
(cherry picked from commit 00507499530d90533cf029bd503be326d9018138)
check/bugme_chinrem_gcd.cpp
ginac/polynomial/mgcd.cpp