mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0030888: Data Exchange, RWGltf_CafReader - fix misprint in condition while iterating binary glTF 2.0 chunks
This commit is contained in:
parent
a6b55fba08
commit
9975d32acf
@ -174,7 +174,7 @@ Standard_Boolean RWGltf_CafReader::performMesh (const TCollection_AsciiString& t
|
|||||||
for (int aChunkIter = 0; !aFile.eof() && aChunkIter < 2; ++aChunkIter)
|
for (int aChunkIter = 0; !aFile.eof() && aChunkIter < 2; ++aChunkIter)
|
||||||
{
|
{
|
||||||
char aChunkHeader2[8] = {};
|
char aChunkHeader2[8] = {};
|
||||||
if (int64_t(aFile.tellg()) + int64_t(sizeof(aChunkHeader2)) > int64_t(aLen))
|
if (int64_t(aFile.tellg()) + int64_t(sizeof(aChunkHeader2)) > int64_t(*aLen))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -251,7 +251,7 @@ Standard_Boolean RWGltf_CafReader::performMesh (const TCollection_AsciiString& t
|
|||||||
}
|
}
|
||||||
TCollection_AsciiString anErrDesc (RWGltf_GltfJsonParser::FormatParseError (aRes.Code()));
|
TCollection_AsciiString anErrDesc (RWGltf_GltfJsonParser::FormatParseError (aRes.Code()));
|
||||||
Message::DefaultMessenger()->Send (TCollection_AsciiString ("File '") + theFile + "' defines invalid JSON document!\n"
|
Message::DefaultMessenger()->Send (TCollection_AsciiString ("File '") + theFile + "' defines invalid JSON document!\n"
|
||||||
+ anErrDesc + ".", Message_Fail);
|
+ anErrDesc + " [at offset " + (int )aRes.Offset() + "].", Message_Fail);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user