X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/8d299320103cc6803e76d9053b11b10313a324e2..941a348351e409096689d4126214026eb2745d69:/catacomb/__init__.py diff --git a/catacomb/__init__.py b/catacomb/__init__.py index dc5ecbb..725f6d2 100644 --- a/catacomb/__init__.py +++ b/catacomb/__init__.py @@ -275,7 +275,7 @@ def secret_unbox(k, n, c): class BaseRat (object): """Base class implementing fields of fractions over Euclidean domains.""" def __new__(cls, a, b): - a, b = cls.RING(a), cls.RING(b) + a, b = cls.RING._implicit(a), cls.RING._implicit(b) q, r = divmod(a, b) if r == cls.ZERO: return q g = b.gcd(r)