Skip to content

Commit

Permalink
Update STLLoader.cpp
Browse files Browse the repository at this point in the history
add missing const.
  • Loading branch information
kimkulling committed Nov 7, 2017
1 parent b87e764 commit da7ce89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/STLLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit da7ce89

Please sign in to comment.