aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/CImageLoaderPNG.cpp
diff options
context:
space:
mode:
authorHerman Semenov <GermanAizek@yandex.ru>2022-09-02 09:40:02 +0300
committerGitHub <noreply@github.com>2022-09-02 08:40:02 +0200
commitd733e03430cf623d722b2efe87872b68bb3d4d1f (patch)
tree768d2ab2ecfb92b40d3acda1f2057a2cf5ea8f2e /source/Irrlicht/CImageLoaderPNG.cpp
parentf0766c845f85c2f467843f20cf811c62cd2402c7 (diff)
downloadirrlicht-d733e03430cf623d722b2efe87872b68bb3d4d1f.tar.xz
Fix glHint parameter, type size and add more null checks (#130)
Diffstat (limited to 'source/Irrlicht/CImageLoaderPNG.cpp')
-rw-r--r--source/Irrlicht/CImageLoaderPNG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Irrlicht/CImageLoaderPNG.cpp b/source/Irrlicht/CImageLoaderPNG.cpp
index 9638421..b468017 100644
--- a/source/Irrlicht/CImageLoaderPNG.cpp
+++ b/source/Irrlicht/CImageLoaderPNG.cpp
@@ -40,7 +40,7 @@ void PNGAPI user_read_data_fcn(png_structp png_ptr, png_bytep data, png_size_t l
// changed by zola {
io::IReadFile* file=(io::IReadFile*)png_get_io_ptr(png_ptr);
- check=(png_size_t) file->read((void*)data,(u32)length);
+ check=(png_size_t) file->read((void*)data, length);
// }
if (check != length)