Fix build failure due to PPM save incorrect data types

Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
pull/238/head
Timothy Pearson 8 years ago committed by Timothy Pearson
parent e965a668a3
commit 47b06d3255

@ -324,7 +324,7 @@ static bool savePPM(Stream & s, const Image * img)
writer.writeString("255\n");
for (uint i = 0; i < w * h; i++) {
Color32 c = img->pixel(i);
s << c.r << c.g << c.b;
s << (uint8_t&)c.r << (uint8_t&)c.g << (uint8_t&)c.b;
}
return true;

Loading…
Cancel
Save