summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenton Woods <denton.woods@gmail.com>2017-01-03 21:58:34 -0600
committerDenton Woods <denton.woods@gmail.com>2017-01-03 21:58:34 -0600
commit41fcabbee7be1a7763ecf48c87e0e803f42b41bf (patch)
treee23cda497c89a65eff0f429dfd4e273397384ecd
parentc1aa1cf7783f52144bb555887c7cffaaf24185ef (diff)
downloaddevil-41fcabbee7be1a7763ecf48c87e0e803f42b41bf.tar.gz
- Fixed int to boolean conversion error under Linux
-rw-r--r--DevIL/src-IL/src/il_jpeg.cpp4
1 files 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;
}