-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topdown: Fix panic in array.slice due to incorrect clamping
The built-in function implemented clamping in an odd way. With this change, the stopIndex will always be [0, len(arr)] and the startIndex will always be [0, clamped_stopIndex]. Fixes #2320 Signed-off-by: Torin Sandall <torinsandall@gmail.com>
- Loading branch information
Showing
2 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters