Skip to content

Commit

Permalink
Fix pointer access in local procedures for out params
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-esa committed Jun 30, 2023
1 parent 7f26b22 commit 611caf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opengeode/CGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ def _primary_variable(prim):
_, string, _ = expression(qualified)
else:
var = find_var(name)
if prim.value[0] in LOCAL_OUT_PARS:
if prim.value[0].lower() in (v.lower() for v in LOCAL_OUT_PARS.keys()):
string = u'(*{name})'.format(name=prim.value[0])
elif not var or is_local(var):
string = u'{name}'.format(name=prim.value[0])
Expand Down

0 comments on commit 611caf0

Please sign in to comment.