I made a variable as a color Gcolor_4; and another variable as an int called int color_6 = 32768;
Now I'd like to put this value from color_6 to Gcolor_4
Like this Gcolor_4 = color_6_6;
and when compiling I got "possible loss of data due to type conversion"
So how can I fix this conversion .
It's just a warning. I'm not sure but try this:
int color_6 = 32768;
Gcolor_4 = (color)color_6; // explicit type conversion
This should result in a green color (32768 or in hex 0x008000)