Skip to content

Commit 11493b8

Browse files
authored
Fix missing prefix in _print_Allocate in FCodePrinter (pyccel#2092)
Add missing call and make string into f-string to fix pyccel#2091
1 parent 1d735e8 commit 11493b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyccel/codegen/printing/fcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ def _print_Allocate(self, expr):
21562156
elif expr.alloc_type == 'reserve':
21572157
var_code = self._print(expr.variable)
21582158
size_code = self._print(expr.shape[0])
2159-
return '{var_code} % reserve({size_code})\n'
2159+
return f'call {var_code} % reserve({size_code})\n'
21602160
else:
21612161
return ''
21622162
elif isinstance(class_type, (HomogeneousContainerType, DictType)):

0 commit comments

Comments
 (0)