2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-01-29 03:40:20 +08:00

py2llvm/fractions: fix or_sub

This commit is contained in:
Sebastien Bourdeauducq 2014-09-16 16:43:01 +08:00
parent 040fa0e02a
commit dbca62c1d7

View File

@ -201,7 +201,7 @@ class VFraction(VGeneric):
return self._o_addsub(other, builder, False) return self._o_addsub(other, builder, False)
def or_sub(self, other, builder): 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): def _o_muldiv(self, other, builder, div, invert=False):
if not isinstance(other, (VFraction, VInt)): if not isinstance(other, (VFraction, VInt)):