Fix warning.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5343 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
85e14866a6
commit
4e0ad489e5
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue