Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update contracts/utils/structs/CircularBuffer.sol
  • Loading branch information
Amxx authored Feb 20, 2024
commit 5cd33bc83e98b19f72df0b7e650f0190c92a8f31
2 changes: 1 addition & 1 deletion contracts/utils/structs/CircularBuffer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ library CircularBuffer {
if (i >= total) {
Panic.panic(Panic.ARRAY_OUT_OF_BOUNDS);
}
return Arrays.unsafeAccess(self._data, (index - i - 1) % self._data.length).value;
return Arrays.unsafeAccess(self._data, (index - i - 1) % length).value;
}

/**
Expand Down