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
The PInvoke generator seems to use the wrong enum base type (or else, it generates values that are not always signed ints). One example is the FT_Glyph_Format enum from freetype defined here.
It seems like the macro is expanded/converted correctly, but it produces uint. Either, the enum should use uint as base type, or the individual values need to be cast to int using unchecked((int) expr). I think both would yield correct code/bindings.
The text was updated successfully, but these errors were encountered:
The PInvoke generator seems to use the wrong enum base type (or else, it generates values that are not always signed ints). One example is the
FT_Glyph_Format
enum fromfreetype
defined here.The tool generates:
It seems like the macro is expanded/converted correctly, but it produces
uint
. Either, the enum should useuint
as base type, or the individual values need to be cast to int usingunchecked((int) expr)
. I think both would yield correct code/bindings.The text was updated successfully, but these errors were encountered: