Skip to content

Commit a48e6ee

Browse files
committed
compiler: Fix Cast symbolic representation
1 parent 94e5743 commit a48e6ee

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

devito/symbolics/extended_sympy.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,7 @@ def _C_ctype(self):
453453

454454
@property
455455
def _op(self):
456-
cstr = ctypes_to_cstr(self._C_ctype)
457-
if self.stars:
458-
cstr = f"{cstr}{self.stars}"
459-
return f'({cstr})'
456+
return f'({ctypes_to_cstr(self._C_ctype)}{self.stars})'
460457

461458
def __str__(self):
462459
return f"{self._op}{self.base}"

0 commit comments

Comments
 (0)