Skip to content

Commit 10f44e0

Browse files
committed
cfix-sint addition.
1 parent f963eb2 commit 10f44e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Compiler/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4167,6 +4167,8 @@ def add(self, other):
41674167
other = self.parse_type(other)
41684168
if isinstance(other, cfix):
41694169
return cfix._new(self.v + other.v, k=self.k, f=self.f)
4170+
elif isinstance(other, sfix):
4171+
return other + self
41704172
else:
41714173
return NotImplemented
41724174

0 commit comments

Comments
 (0)