diff --git a/artiq/py2llvm/fractions.py b/artiq/py2llvm/fractions.py index cf67a56ea..e4c4c2bff 100644 --- a/artiq/py2llvm/fractions.py +++ b/artiq/py2llvm/fractions.py @@ -201,7 +201,7 @@ class VFraction(VGeneric): return self._o_addsub(other, builder, False) def or_sub(self, other, builder): - return self._o_addsub(other, builder, False, True) + return self._o_addsub(other, builder, True, True) def _o_muldiv(self, other, builder, div, invert=False): if not isinstance(other, (VFraction, VInt)):