summaryrefslogtreecommitdiff
path: root/DevIL/src-IL/src/il_rle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DevIL/src-IL/src/il_rle.cpp')
-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: