typedef struct GuiStyleProp {
unsigned short controlId; // Control identifier
unsigned short propertyId; // Property identifier
int propertyValue; // Property value
} GuiStyleProp;
Requesting change int propertyValue; to unsigned int propertyValue;
typedef struct GuiStyleProp {
unsigned short controlId; // Control identifier
unsigned short propertyId; // Property identifier
unsigned int propertyValue; // Property value
} GuiStyleProp;
Reason being that there is a possible narrowing conversion to MAXINT, and C++ (unlike C) will throw a lot of errors when trying to use any of the default styles (e.g. /styles/cyber/stylecyber.h) because of this narrowing conversion. This change fixes that issue and allows C++ to build.
VERSION raylib 5.0 / raygui 4.0
raygui.h line 450
Requesting change
int propertyValue;
tounsigned int propertyValue;
Reason being that there is a possible narrowing conversion to MAXINT, and C++ (unlike C) will throw a lot of errors when trying to use any of the default styles (e.g. /styles/cyber/stylecyber.h) because of this narrowing conversion. This change fixes that issue and allows C++ to build.