Skip to content
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 stackoverflow in circshift!(x, y, (1.0,)) #36734

Merged
merged 1 commit into from
Jul 23, 2020
Merged

Conversation

rfourquet
Copy link
Member

Currently:

julia> y = rand(2, 3); circshift(y, (1.0,))
2×3 Matrix{Float64}:
 0.224088  0.726063  0.704152
 0.545146  0.442787  0.417946

julia> x = similar(y); circshift!(x, y, (1.0,))
ERROR: StackOverflowError:

An alternative fix would be to disallow non-Integer, but would be (minorly?) breaking.

@rfourquet rfourquet added domain:arrays [a, r, r, a, y, s] kind:bugfix This change fixes an existing bug labels Jul 20, 2020
@JeffBezanson JeffBezanson merged commit 773ef66 into master Jul 23, 2020
@JeffBezanson JeffBezanson deleted the rf/circshift-nonint branch July 23, 2020 23:15
rfourquet added a commit that referenced this pull request Jul 24, 2020
JeffBezanson pushed a commit that referenced this pull request Jul 25, 2020
@KristofferC KristofferC mentioned this pull request Aug 3, 2020
25 tasks
simeonschaub pushed a commit to simeonschaub/julia that referenced this pull request Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:arrays [a, r, r, a, y, s] kind:bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants