Commits

Ollie Rutherfurd committed c5ef5cd
  • Participants
  • Parent commits d7a611a

Comments (0)

Files changed (1)

             return Value(calc(self.value, other.value), self.unit)
         elif isinstance(other, Value):
             if self.unit == other.unit:
-                return Value(self.value + other.value, other.unit,
+                return Value(calc(self.value, other.value), other.unit,
                              lineno=self.lineno)
             self_unit_type = _conv_mapping.get(self.unit)
             other_unit_type = _conv_mapping.get(other.unit)