Skip to content
Snippets Groups Projects
Commit fd42decd authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fix PsSubscript set_child

parent 95a195ea
No related branches found
No related tags found
1 merge request!420Revised Array Modelling & Memory Model
Pipeline #69624 passed
......@@ -230,7 +230,7 @@ class PsSubscript(PsLvalue, PsExpression):
return (self._arr,) + tuple(self._index)
def set_child(self, idx: int, c: PsAstNode):
idx = range(len(self._index))[idx]
idx = range(len(self._index) + 1)[idx]
match idx:
case 0:
self.array = failing_cast(PsExpression, c)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment