You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's worth noting that the behavior of int x : 11 in C is undefined. It could be signed int or unsigned int. In C++ it is well defined and treated as signed int
When generating an interop structure for the following type:
ClangSharpPInvokeGenerator
produces accessors like the following:Which does not appear to handle the sign of each component properly.
Setting
i
to0xFB3E7064
should produce100, -50, -20
forx, y, z
, but with the currently generated code, it produces100, 1998, 1004
. If the code for the getters are tweaked to match the assembly generated by Clang and MSVC, then the results are correct.The text was updated successfully, but these errors were encountered: