-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Marshal.SizeOf of bool and char report wrong value #113599
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
This is a very old bug. TODO for it was added in dotnet/corert#5707 (comment). I'm actually not sure where the worms are, I would fix it by adding |
I think it would be fine if it fixed this bug, but I doubt that it is going to fix the problem. NativeAOT returning 4 for |
I think @am11 has the results swapped, I'm seeing this on CoreCLR:
And this on native AOT:
I.e. it's marshalled on CoreCLR, but blittable on native AOT. |
Ah, I copied nativeaot output first. (in my defense, it was late at night and I was focused on 32 byte delta when this other difference showed up 😅) |
Originally posted by @am11 in #113589
The text was updated successfully, but these errors were encountered: