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