]> www.ginac.de Git - ginac.git/commit
[PATCH 1/2] extract_integer_content: check for rational numbers properly.
authorAlexei Sheplyakov <alexei.sheplyakov@gmail.com>
Fri, 3 Dec 2010 23:35:06 +0000 (00:35 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Sat, 4 Dec 2010 07:41:45 +0000 (08:41 +0100)
commiteccdca0011fc44bc14cfcb7ffd82dbcb653e19a5
treea51ad0a50a7e985f83e561331b945af41b9c6a9b
parentd41f7533018d9f9444c98466432e4d84deedaa04
[PATCH 1/2] extract_integer_content: check for rational numbers properly.

Commit 3d09388a (titled as `[bugfix] chinrem_gcd: handle polynomials over
rationals properly.') broke extract_integer_content: now it always returns 1.
The check for rational `integer_contnent' introduced by that commit is wrong
(since integers is a subset of rationals). Rewrite the check proprerly.
(cherry picked from commit f0fb303711b4334ce59f7da63bfa7cb49f46265f)
ginac/polynomial/mgcd.cpp