From 70181276bf4530464d42fc854d903ca7c490a305 Mon Sep 17 00:00:00 2001 From: Denton Woods Date: Sat, 31 Dec 2016 14:30:35 -0600 Subject: - Fixed Mac OS pointer error and MSVC++ 64-bit warning (https://github.com/DentonW/DevIL/issues/47) --- DevIL/src-IL/src/il_rle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DevIL/src-IL/src/il_rle.cpp b/DevIL/src-IL/src/il_rle.cpp index 80e71690..c5726310 100644 --- a/DevIL/src-IL/src/il_rle.cpp +++ b/DevIL/src-IL/src/il_rle.cpp @@ -17,7 +17,7 @@ ILboolean ilRleCompressLine(ILubyte *p, ILuint n, ILubyte bpp, ILint SameCount; // number of identical adjacent pixels ILint RLEBufSize = 0; // count of number of bytes encoded ILint MaxRun; - const ILint bmp_pad_to_even = (ILint)(1 - ((ILint)q - *DestWidth) % 2); + const ILint bmp_pad_to_even = (ILint)(1 - ((size_t)q - *DestWidth) % 2); switch( CompressMode ) { case IL_TGACOMP: -- cgit v1.2.1