1From 73e56ba8e91b6bae59220e6f25c1b7c15817edb5 Mon Sep 17 00:00:00 2001 2From: Romain Naour <romain.naour@gmail.com> 3Date: Sun, 12 Feb 2017 21:17:44 +0100 4Subject: [PATCH] ImageIO: fix invalid conversion 5 6Fixes: 7Source/Utils/ImageIO.cpp:125:27: error: invalid conversion from 'int' to 'boolean' [-fpermissive] 8 cinfo.quantize_colors = 0; 9 ^ 10 11quantize_colors type is bool, so it must be initialized to TRUE or FALSE. 12 13Patch status: upsteam 14 15Signed-off-by: Romain Naour <romain.naour@gmail.com> 16--- 17 Source/Utils/ImageIO.cpp | 2 +- 18 1 file changed, 1 insertion(+), 1 deletion(-) 19 20diff --git a/Source/Utils/ImageIO.cpp b/Source/Utils/ImageIO.cpp 21index 706c201..c19a63e 100644 22--- a/Source/Utils/ImageIO.cpp 23+++ b/Source/Utils/ImageIO.cpp 24@@ -122,7 +122,7 @@ static bool load_jpg(const char* file_name, ImageRec& tex) 25 (void)jpeg_read_header(&cinfo, TRUE); 26 27 cinfo.out_color_space = JCS_RGB; 28- cinfo.quantize_colors = 0; 29+ cinfo.quantize_colors = FALSE; 30 (void)jpeg_calc_output_dimensions(&cinfo); 31 (void)jpeg_start_decompress(&cinfo); 32 33-- 342.9.3 35 36