-
-
Notifications
You must be signed in to change notification settings - Fork 131
Fix issue 1805 #1807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue 1805 #1807
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you split this into 6 separate commits (in the same PR) for the individual, unrelated issues? Each of them with a commit message explaining what is done there (basically what you already wrote in the issue, possibly shortened a bit)
9b3e0a1
to
e515234
Compare
I have followed your instructions and completed the task : ) |
Thanks! |
"start_index is out of range" | ||
); | ||
assert!( | ||
length >= 0 && start_index.checked_add(length).unwrap() < total_length, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong unfortunately, sorry for missing that. Needs to be <= total_length
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix #1805