Skip to content

Commit

Permalink
WI #2619 Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
fm-117 committed Mar 26, 2024
1 parent 40bf70d commit a39f8d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions TypeCobol/Compiler/Nodes/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,7 @@ void ComputeStartPosition()
//Looks further up if the first position encountered is from a DataRedefines node with an existing redefined variable.
while (sibling is DataRedefines dataRedefines && dataRedefines.RedefinedVariable != null)
{
sibling = Parent.Children[siblingIndex - 1];
siblingIndex--;
sibling = Parent.Children[--siblingIndex];
}

DataDefinition siblingDefinition = (DataDefinition)sibling;
Expand Down

0 comments on commit a39f8d5

Please sign in to comment.