Open koczkatamas opened 7 years ago
C# and Java (possibly others) are using s4 enums, but the compiler generates u4 enums which are out-of-range if values above 2**31 used.
s4
u4
In C# we can choose the underlying type for enums by using public enum LoadCommandType: uint instead of public enum LoadCommandType.
public enum LoadCommandType: uint
public enum LoadCommandType
Affected formats: Mach-O, ...
I guess we can either generate signed enum values for Java? Would that help?
C# and Java (possibly others) are using
s4
enums, but the compiler generatesu4
enums which are out-of-range if values above 2**31 used.In C# we can choose the underlying type for enums by using
public enum LoadCommandType: uint
instead ofpublic enum LoadCommandType
.Affected formats: Mach-O, ...