FBX: small optimization to avoind static computation in loop.

pull/1958/head
Kim Kulling 2018-05-12 08:09:27 +02:00
parent 1c9406b2f5
commit ef605fecaa
1 changed files with 2 additions and 2 deletions

View File

@ -448,8 +448,8 @@ void TokenizeBinary(TokenList& output_tokens, const char* input, unsigned int le
/*Result ignored*/ ReadByte(input, cursor, input + length); /*Result ignored*/ ReadByte(input, cursor, input + length);
const uint32_t version = ReadWord(input, cursor, input + length); const uint32_t version = ReadWord(input, cursor, input + length);
const bool is64bits = version >= 7500; const bool is64bits = version >= 7500;
while (cursor < input + length) const char *end = input + length;
{ while (cursor < end ) {
if (!ReadScope(output_tokens, input, cursor, input + length, is64bits)) { if (!ReadScope(output_tokens, input, cursor, input + length, is64bits)) {
break; break;
} }