Fix build failure due to PPM save incorrect data types
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
This commit is contained in:
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…
Reference in New Issue
Block a user