From: Romain Naour Date: Sun, 12 Feb 2017 20:17:44 +0000 (+0100) Subject: ImageIO: fix invalid conversion X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=bb543993bb6f1eb76519a395d9a0a10ee777d160;p=lugaru.git ImageIO: fix invalid conversion Fixes: Source/Utils/ImageIO.cpp:125:27: error: invalid conversion from 'int' to 'boolean' [-fpermissive] cinfo.quantize_colors = 0; ^ quantize_colors type is bool, so it must be initialized to TRUE or FALSE. Signed-off-by: Romain Naour --- diff --git a/Source/Utils/ImageIO.cpp b/Source/Utils/ImageIO.cpp index 706c201..c19a63e 100644 --- a/Source/Utils/ImageIO.cpp +++ b/Source/Utils/ImageIO.cpp @@ -122,7 +122,7 @@ static bool load_jpg(const char* file_name, ImageRec& tex) (void)jpeg_read_header(&cinfo, TRUE); cinfo.out_color_space = JCS_RGB; - cinfo.quantize_colors = 0; + cinfo.quantize_colors = FALSE; (void)jpeg_calc_output_dimensions(&cinfo); (void)jpeg_start_decompress(&cinfo);