- fbx: 32 bit build fixes.
parent
315285faf0
commit
8d5b78c035
|
@ -1108,7 +1108,7 @@ private:
|
||||||
{
|
{
|
||||||
// locate source materials for this mesh
|
// locate source materials for this mesh
|
||||||
const std::vector<const Material*>& mats = model.GetMaterials();
|
const std::vector<const Material*>& mats = model.GetMaterials();
|
||||||
if (materialIndex >= mats.size() || materialIndex < 0) {
|
if (static_cast<unsigned int>(materialIndex) >= mats.size() || materialIndex < 0) {
|
||||||
FBXImporter::LogError("material index out of bounds, setting default material");
|
FBXImporter::LogError("material index out of bounds, setting default material");
|
||||||
out->mMaterialIndex = GetDefaultMaterial();
|
out->mMaterialIndex = GetDefaultMaterial();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -311,7 +311,7 @@ size_t ParseTokenAsDim(const Token& t, const char*& err_out)
|
||||||
ai_assert(t.end() - data == 9);
|
ai_assert(t.end() - data == 9);
|
||||||
BE_NCONST uint64_t id = *reinterpret_cast<const uint64_t*>(data+1);
|
BE_NCONST uint64_t id = *reinterpret_cast<const uint64_t*>(data+1);
|
||||||
AI_SWAP8(id);
|
AI_SWAP8(id);
|
||||||
return id;
|
return static_cast<size_t>(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(*t.begin() != '*') {
|
if(*t.begin() != '*') {
|
||||||
|
|
Loading…
Reference in New Issue