Update STLLoader.cpp

add missing const.
pull/1549/head
Kim Kulling 2017-11-07 10:47:27 +01:00 committed by GitHub
parent b87e7643d2
commit da7ce89ff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ static bool IsBinarySTL(const char* buffer, unsigned int fileSize) {
return false;
}
char *facecount_pos = buffer + 80;
const char *facecount_pos = buffer + 80;
uint32_t faceCount( 0 );
::memcpy( &faceCount, facecount_pos, sizeof( uint32_t ) );
const uint32_t expectedBinaryFileSize = faceCount * 50 + 84;