瀏覽代碼

Remove unneeded check.

Malcolm Tyrrell 5 年之前
父節點
當前提交
0282f358a4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/AssetLib/FBX/FBXBinaryTokenizer.cpp

+ 1 - 1
code/AssetLib/FBX/FBXBinaryTokenizer.cpp

@@ -467,7 +467,7 @@ void TokenizeBinary(TokenList& output_tokens, const char* input, size_t length)
     }
     catch (const DeadlyImportError& e)
     {
-        if ((sizeof(size_t) > 4) && !is64bits && (length > std::numeric_limits<std::uint32_t>::max())) {
+        if (!is64bits && (length > std::numeric_limits<std::uint32_t>::max())) {
             throw DeadlyImportError("The FBX file is invalid. This may be because the content is too big for this older version (" + to_string(version) + ") of the FBX format. (" + e.what() + ")");
         }
         throw;