diff options
author | Denton Woods <denton.woods@gmail.com> | 2016-12-31 14:30:35 -0600 |
---|---|---|
committer | Denton Woods <denton.woods@gmail.com> | 2016-12-31 14:30:35 -0600 |
commit | 70181276bf4530464d42fc854d903ca7c490a305 (patch) | |
tree | 3fce7de6add6a1096075723555f159f563f2f6d7 | |
parent | bd1c1f704ace660dc1928da426a5c290b0d8fadf (diff) | |
download | devil-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.cpp | 2 |
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: |