Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Port fix for "at" expression off-by-1 error #11375

Merged
merged 3 commits into from
Mar 2, 2018
Merged

Conversation

anandthakker
Copy link
Contributor

@anandthakker anandthakker requested a review from jfirebaugh March 2, 2018 20:32
if (i < 0 || i >= inputArray.size()) {
if (i < 0) {
return EvaluationError {
"Array index out of bounds: " + stringify(i) + " < 0."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we're mixing stringify and util::toString?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, just an oversight, I think. Will consistentize before merging.

@anandthakker anandthakker merged commit 8ed540e into release-boba Mar 2, 2018
@anandthakker anandthakker deleted the port-6269 branch March 2, 2018 21:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants