mirror of https://github.com/m-labs/artiq.git
py2llvm/fractions: fix addsub with int
This commit is contained in:
parent
2c0b6ff4cc
commit
f0c2003778
|
@ -171,7 +171,7 @@ class VFraction(VGeneric):
|
||||||
r = VFraction()
|
r = VFraction()
|
||||||
if builder is not None:
|
if builder is not None:
|
||||||
if isinstance(other, VInt):
|
if isinstance(other, VInt):
|
||||||
i = other.o_int64(builder).auto_load()
|
i = other.o_int64(builder).auto_load(builder)
|
||||||
x, rd = self._nd(builder)
|
x, rd = self._nd(builder)
|
||||||
y = builder.mul(rd, i)
|
y = builder.mul(rd, i)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue