Skip to content

Commit

Permalink
fix: Fixed a small bug in the size calculation of an ArrayInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdutz committed Oct 1, 2024
1 parent aa4f965 commit cdcddcc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public DefaultArrayInfo(int lowerBound, int upperBound) {

@Override
public int getSize() {
return upperBound - lowerBound;
return 1 + (upperBound - lowerBound);
}

@Override
Expand Down

0 comments on commit cdcddcc

Please sign in to comment.