aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/CImageLoaderRGB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Irrlicht/CImageLoaderRGB.cpp')
-rw-r--r--source/Irrlicht/CImageLoaderRGB.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Irrlicht/CImageLoaderRGB.cpp b/source/Irrlicht/CImageLoaderRGB.cpp
index 1f0b141..dfb4b8b 100644
--- a/source/Irrlicht/CImageLoaderRGB.cpp
+++ b/source/Irrlicht/CImageLoaderRGB.cpp
@@ -555,7 +555,7 @@ void CImageLoaderRGB::readRGBrow(u8 *buf, int y, int z, io::IReadFile* file, rgb
// limit the count value to the remaining row size
if (oPtr + count*rgb.Header.BPC > buf + rgb.Header.Xsize * rgb.Header.BPC)
{
- count = ( (buf + rgb.Header.Xsize * rgb.Header.BPC) - oPtr ) / rgb.Header.BPC;
+ count = (s32)( (buf + rgb.Header.Xsize * rgb.Header.BPC) - oPtr ) / rgb.Header.BPC;
}
if (count<=0)