If the actual code is the below one, it gives 128. I've copied the code here before you change the code in the opening post again.
struct RGBColor
{
int r;
int g;
int b;
};
void setup()
{
RGBColor colWrite;
colWrite.r = 128;
colWrite.g = 0;
colWrite.b = 0;
EEPROM.put(0, colWrite);
RGBColor colRead;
EEPROM.get(0, colRead);
Serial.println(colRead.r); // outputs 1073741520 instead of 128
}
Which board are you using?