From 41fcabbee7be1a7763ecf48c87e0e803f42b41bf Mon Sep 17 00:00:00 2001 From: Denton Woods Date: Tue, 3 Jan 2017 21:58:34 -0600 Subject: - Fixed int to boolean conversion error under Linux --- DevIL/src-IL/src/il_jpeg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DevIL/src-IL/src/il_jpeg.cpp b/DevIL/src-IL/src/il_jpeg.cpp index 8434464f..57c2bade 100644 --- a/DevIL/src-IL/src/il_jpeg.cpp +++ b/DevIL/src-IL/src/il_jpeg.cpp @@ -245,7 +245,7 @@ fill_input_buffer (j_decompress_ptr cinfo) src->buffer[0] = (JOCTET) 0xFF; src->buffer[1] = (JOCTET) JPEG_EOI; nbytes = 2; - return IL_FALSE; + return (boolean)IL_FALSE; } if (nbytes < INPUT_BUF_SIZE) { ilGetError(); // Gets rid of the IL_FILE_READ_ERROR. @@ -255,7 +255,7 @@ fill_input_buffer (j_decompress_ptr cinfo) src->pub.bytes_in_buffer = nbytes; src->start_of_file = IL_FALSE; - return IL_TRUE; + return (boolean)IL_TRUE; } -- cgit v1.2.1