diff --git a/pymbolic/rational.py b/pymbolic/rational.py index b150a54b..8ee426eb 100644 --- a/pymbolic/rational.py +++ b/pymbolic/rational.py @@ -85,6 +85,8 @@ def __rsub__(self, other): def __mul__(self, other): if not isinstance(other, Rational): newother = Rational(other) + else: + newother = other try: t = traits.common_traits(self.Numerator, newother.Numerator,