small fixes

This commit is contained in:
tigrazone
2017-12-08 08:43:33 +02:00
parent b2f07d10aa
commit baa62f4d89

View File

@@ -2357,8 +2357,15 @@ bool LoadObjWithCallback(std::istream &inStream, const callback_t &callback,
token_sz = strpbrk(token, " \t\r") - token; // token length
if(token_sz<1) //delimiter not found, token_sz = strlen(token)
{
//token_sz=strlen(token);
a_hash = X31_hash_string(token);
}
else
a_hash = X31_hash_stringSZ(token, token_sz);
a_tok = -1;
if(hashed_toks.find(a_hash) != hashed_toks.end())
a_tok = hashed_toks[a_hash];