summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenton Woods <denton.woods@gmail.com>2016-12-31 14:30:35 -0600
committerDenton Woods <denton.woods@gmail.com>2016-12-31 14:30:35 -0600
commit70181276bf4530464d42fc854d903ca7c490a305 (patch)
tree3fce7de6add6a1096075723555f159f563f2f6d7
parentbd1c1f704ace660dc1928da426a5c290b0d8fadf (diff)
downloaddevil-70181276bf4530464d42fc854d903ca7c490a305.tar.gz
- Fixed Mac OS pointer error and MSVC++ 64-bit warning (https://github.com/DentonW/DevIL/issues/47)
-rw-r--r--DevIL/src-IL/src/il_rle.cpp2
1 files changed, 1 insertions, 1 deletions
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: