From 47b06d3255b47f4a85bc2d09b3a77560709dc41f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 26 Jun 2016 19:23:56 -0500 Subject: [PATCH] Fix build failure due to PPM save incorrect data types Signed-off-by: Timothy Pearson --- src/nvimage/ImageIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvimage/ImageIO.cpp b/src/nvimage/ImageIO.cpp index ec96020..e50cd7b 100644 --- a/src/nvimage/ImageIO.cpp +++ b/src/nvimage/ImageIO.cpp @@ -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;