-
-
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
Array fixes for non-power-of-2 sized elements #33283
Conversation
test/core.jl
Outdated
# non-power-of-2 element sizes | ||
primitive type TypeWith24Bits 24 end | ||
let x = Core.Intrinsics.trunc_int(TypeWith24Bits, 0x112233), a = [x,x] | ||
Core.arrayset(true, a, x, 2) |
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.
a[2] = x
, or are you intentionally trying to avoid this being compiled (could use a comment)?
Can you add a test for a = [(x, x), (x, x)]
also?
Might be good to use something other than x
here also, so that the mutation here is observable.
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.
OK. Yes, I was trying to avoid the compiled form since I believe it does the right thing.
ba2f6cc
to
e29fd4a
Compare
e29fd4a
to
6c13b63
Compare
Can we add the backport label? Reason is that |
In julia 1.x:
How to reproduce what you're seeing? |
That is fixed on master. I saw the spurious
|
on 1.3 at least. |
Before:
After: works.
Fixes JuliaData/JuliaDB.jl#287 (comment)