From 253f8bfa621a9fa6cd2c36291cdaa8c60c99322c Mon Sep 17 00:00:00 2001 From: Ville Voutilainen Date: Tue, 9 Aug 2022 01:51:30 +0300 Subject: [PATCH] Use unqualified uint32_t everywhere in FBXBinaryTokenizer The use of qualified std::uint32_t requires including instead of on some implementations, and that breaks the build of Qt 6 on GCC 13. Just use the unqualified name everywhere. --- code/AssetLib/FBX/FBXBinaryTokenizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/AssetLib/FBX/FBXBinaryTokenizer.cpp b/code/AssetLib/FBX/FBXBinaryTokenizer.cpp index 1a4d11856..8fb700179 100644 --- a/code/AssetLib/FBX/FBXBinaryTokenizer.cpp +++ b/code/AssetLib/FBX/FBXBinaryTokenizer.cpp @@ -472,7 +472,7 @@ void TokenizeBinary(TokenList& output_tokens, const char* input, size_t length) } catch (const DeadlyImportError& e) { - if (!is64bits && (length > std::numeric_limits::max())) { + if (!is64bits && (length > std::numeric_limits::max())) { throw DeadlyImportError("The FBX file is invalid. This may be because the content is too big for this older version (", ai_to_string(version), ") of the FBX format. (", e.what(), ")"); } throw;