From 4d8d638ce21b786f2534aba6d38e656ed981178d Mon Sep 17 00:00:00 2001 From: cutealien Date: Wed, 20 Apr 2022 22:16:33 +0000 Subject: [PATCH] Avoid warning git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6350 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CSTLMeshFileLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Irrlicht/CSTLMeshFileLoader.cpp b/source/Irrlicht/CSTLMeshFileLoader.cpp index 315cf15..f6e3905 100644 --- a/source/Irrlicht/CSTLMeshFileLoader.cpp +++ b/source/Irrlicht/CSTLMeshFileLoader.cpp @@ -46,7 +46,7 @@ IAnimatedMesh* CSTLMeshFileLoader::createMesh(io::IReadFile* fileIn) if ( fileIn->getType() != io::ERFT_MEMORY_READ_FILE ) { u8* fileBuffer = new u8[filesize]; - if ( fileIn->read(fileBuffer, filesize) != filesize ) + if ( fileIn->read(fileBuffer, filesize) != (size_t)filesize ) { delete[] fileBuffer; return 0;