|
@@ -98,7 +98,7 @@ namespace FBX {
|
|
// return (flags & to_check) != 0;
|
|
// return (flags & to_check) != 0;
|
|
//}
|
|
//}
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
-Token::Token(const char* sbegin, const char* send, TokenType type, unsigned int offset)
|
|
|
|
|
|
+Token::Token(const char* sbegin, const char* send, TokenType type, size_t offset)
|
|
:
|
|
:
|
|
#ifdef DEBUG
|
|
#ifdef DEBUG
|
|
contents(sbegin, static_cast<size_t>(send-sbegin)),
|
|
contents(sbegin, static_cast<size_t>(send-sbegin)),
|
|
@@ -122,18 +122,18 @@ namespace {
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
// signal tokenization error, this is always unrecoverable. Throws DeadlyImportError.
|
|
// signal tokenization error, this is always unrecoverable. Throws DeadlyImportError.
|
|
-AI_WONT_RETURN void TokenizeError(const std::string& message, unsigned int offset) AI_WONT_RETURN_SUFFIX;
|
|
|
|
-AI_WONT_RETURN void TokenizeError(const std::string& message, unsigned int offset)
|
|
|
|
|
|
+AI_WONT_RETURN void TokenizeError(const std::string& message, size_t offset) AI_WONT_RETURN_SUFFIX;
|
|
|
|
+AI_WONT_RETURN void TokenizeError(const std::string& message, size_t offset)
|
|
{
|
|
{
|
|
throw DeadlyImportError(Util::AddOffset("FBX-Tokenize",message,offset));
|
|
throw DeadlyImportError(Util::AddOffset("FBX-Tokenize",message,offset));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
-uint32_t Offset(const char* begin, const char* cursor) {
|
|
|
|
|
|
+size_t Offset(const char* begin, const char* cursor) {
|
|
ai_assert(begin <= cursor);
|
|
ai_assert(begin <= cursor);
|
|
|
|
|
|
- return static_cast<unsigned int>(cursor - begin);
|
|
|
|
|
|
+ return cursor - begin;
|
|
}
|
|
}
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
@@ -424,7 +424,7 @@ bool ReadScope(TokenList& output_tokens, const char* input, const char*& cursor,
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
// TODO: Test FBX Binary files newer than the 7500 version to check if the 64 bits address behaviour is consistent
|
|
// TODO: Test FBX Binary files newer than the 7500 version to check if the 64 bits address behaviour is consistent
|
|
-void TokenizeBinary(TokenList& output_tokens, const char* input, unsigned int length)
|
|
|
|
|
|
+void TokenizeBinary(TokenList& output_tokens, const char* input, size_t length)
|
|
{
|
|
{
|
|
ai_assert(input);
|
|
ai_assert(input);
|
|
|
|
|