- BUGFIX : Fix compiler warning ( not referenced parameter ).
- BUGFIX : Fix compiler warning ( constant condition ). git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@491 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -54,7 +54,8 @@ using namespace Assimp;
|
||||
void LWOImporter::LoadLWOBFile()
|
||||
{
|
||||
LE_NCONST uint8_t* const end = mFileBuffer + fileSize;
|
||||
while (true)
|
||||
bool running = true;
|
||||
while (running)
|
||||
{
|
||||
if (mFileBuffer + sizeof(IFF::ChunkHeader) > end)break;
|
||||
LE_NCONST IFF::ChunkHeader* const head = IFF::LoadChunk(mFileBuffer);
|
||||
@@ -229,7 +230,8 @@ void LWOImporter::LoadLWOBSurface(unsigned int size)
|
||||
LWO::Texture* pTex = NULL;
|
||||
|
||||
GetS0(surf.mName,size);
|
||||
while (true) {
|
||||
bool runnning = true;
|
||||
while (runnning) {
|
||||
if (mFileBuffer + 6 >= end)
|
||||
break;
|
||||
|
||||
@@ -244,7 +246,7 @@ void LWOImporter::LoadLWOBSurface(unsigned int size)
|
||||
*/
|
||||
if (mFileBuffer + head->length > end) {
|
||||
DefaultLogger::get()->error("LWOB: Invalid surface chunk length. Trying to continue.");
|
||||
head->length = end - mFileBuffer;
|
||||
head->length = (uint16_t) (end - mFileBuffer);
|
||||
}
|
||||
|
||||
uint8_t* const next = mFileBuffer+head->length;
|
||||
|
||||
Reference in New Issue
Block a user