Fix warning.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5343 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2016-10-01 14:25:56 +00:00
parent 85e14866a6
commit 4e0ad489e5
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ bool CImageLoaderJPG::isALoadableFileFormat(io::IReadFile* file) const
if (!(file && file->seek(0)))
return false;
unsigned char header[3];
int headerLen = file->read(header, sizeof(header));
size_t headerLen = file->read(header, sizeof(header));
return headerLen >= 3 && !memcmp(header, "\xFF\xD8\xFF", 3);
#endif
}