-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
whether Core.checked_dims
decides to throw depends on dimension order (for empty arrays)
#54244
Labels
arrays
[a, r, r, a, y, s]
bug
Indicates an unexpected problem or unintended behavior
regression
Regression in behavior compared to a previous version
Comments
nsajko
added
bug
Indicates an unexpected problem or unintended behavior
arrays
[a, r, r, a, y, s]
needs decision
A decision on this change is needed
labels
Apr 25, 2024
Affected code: Lines 553 to 587 in 8f6418e
|
oscardssmith
added
regression
Regression in behavior compared to a previous version
and removed
needs decision
A decision on this change is needed
labels
Apr 25, 2024
Given that 1.10 allowed both, I think this is a regression. Fix incoming. |
oscardssmith
added a commit
that referenced
this issue
Apr 26, 2024
nsajko
added a commit
to JuliaArrays/FixedSizeArrays.jl
that referenced
this issue
Apr 29, 2024
xref JuliaLang/julia#54244 Fixes #40
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
arrays
[a, r, r, a, y, s]
bug
Indicates an unexpected problem or unintended behavior
regression
Regression in behavior compared to a previous version
Two alternative solutions:
When there's a zero among the dimension sizes, only check that the nonzero sizes are nonnegative and less than
typemax(Int)
. Don't check for overflow during multiplication. This would make both examples above return.Remove the zero sizes before checking for overflow. This would make both examples above throw.
The text was updated successfully, but these errors were encountered: