Fix reverse of ranges of unsigned integers#29842
Merged
oscardssmith merged 1 commit intomasterfrom Jan 6, 2022
Merged
Conversation
Contributor
|
Cool, inexact is very preferable to segfault, and your PR points out the problem: should maybe become which would fix the pointer range. On the other hand, this still smells very brittle. Do we need to support ranges with larger than |
bf40245 to
68afe07
Compare
Member
|
I've expanded this more, and think we should merge, but adding triage label in case someone wants to contest it. I noticed after pushing this that there might also be a case in |
Member
|
:D |
Fixes #29576 Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Lilith Orion Hafner <60898866+LilithHafner@users.noreply.github.com>
68afe07 to
f7e3259
Compare
Member
|
Is this ready to merge? |
Member
|
It has the triage label, but we could also merge now, and then see if anyone has feedback |
vtjnash
added a commit
that referenced
this pull request
Jan 13, 2022
nickrobinson251
pushed a commit
to nickrobinson251/julia
that referenced
this pull request
Jan 14, 2022
We cannot safely use reverse, so we do not anymore. That is now causing conflict between JuliaLang#43059 and JuliaLang#29842. And this is likely clearer anyways. Closes JuliaLang#43788
nickrobinson251
pushed a commit
to nickrobinson251/julia
that referenced
this pull request
Jan 14, 2022
We cannot safely use reverse, so we do not anymore. That is now causing conflict between JuliaLang#43059 and JuliaLang#29842. And this is likely clearer anyways. Closes JuliaLang#43788
LilithHafner
added a commit
to LilithHafner/julia
that referenced
this pull request
Feb 22, 2022
Fixes JuliaLang#29576 Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Lilith Orion Hafner <60898866+LilithHafner@users.noreply.github.com>
LilithHafner
pushed a commit
to LilithHafner/julia
that referenced
this pull request
Feb 22, 2022
We cannot safely use reverse, so we do not anymore. That is now causing conflict between JuliaLang#43059 and JuliaLang#29842. And this is likely clearer anyways. Closes JuliaLang#43788
LilithHafner
added a commit
to LilithHafner/julia
that referenced
this pull request
Mar 8, 2022
Fixes JuliaLang#29576 Co-authored-by: Jameson Nash <vtjnash@gmail.com> Co-authored-by: Lilith Orion Hafner <60898866+LilithHafner@users.noreply.github.com>
LilithHafner
pushed a commit
to LilithHafner/julia
that referenced
this pull request
Mar 8, 2022
We cannot safely use reverse, so we do not anymore. That is now causing conflict between JuliaLang#43059 and JuliaLang#29842. And this is likely clearer anyways. Closes JuliaLang#43788
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #29576,
works aroundimproves #29810.Edit: well, works around might be a little strong. It changes a segfault to an inexact error, so this doesn't add support for reversing ranges of pointers (hence the lack of tests thereof).
Closes #42718