Explorar o código

FIX: Use attribute to fix warning.

Kim Kulling %!s(int64=3) %!d(string=hai) anos
pai
achega
6415c0bfc9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/AssetLib/MD5/MD5Parser.cpp

+ 1 - 1
code/AssetLib/MD5/MD5Parser.cpp

@@ -64,7 +64,7 @@ MD5Parser::MD5Parser(char *_buffer, unsigned int _fileSize) : buffer(_buffer), b
     ai_assert(nullptr != _buffer);
     ai_assert(nullptr != _buffer);
     ai_assert(0 != _fileSize);
     ai_assert(0 != _fileSize);
 
 
-    bufferEnd = buffer + _fileSize;
+    bufferEnd = buffer + fileSize;
     ASSIMP_LOG_DEBUG("MD5Parser begin");
     ASSIMP_LOG_DEBUG("MD5Parser begin");
 
 
     // parse the file header
     // parse the file header