From dbca62c1d7d761eb3ffbea8ac14df19ebbc8586b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 16 Sep 2014 16:43:01 +0800 Subject: [PATCH] py2llvm/fractions: fix or_sub --- artiq/py2llvm/fractions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)):