Static cast i back to unsigned int because MSVC complains otherwise.
i will never be bigger than an unsigned int since that's what mNumProperties is to begin with.pull/3922/head
parent
5468dd667e
commit
2f4fba0703
|
@ -202,17 +202,17 @@ struct aiMetadata {
|
||||||
} break;
|
} break;
|
||||||
case AI_AISTRING: {
|
case AI_AISTRING: {
|
||||||
aiString v;
|
aiString v;
|
||||||
rhs.Get<aiString>(i, v);
|
rhs.Get<aiString>(static_cast<unsigned int>(i), v);
|
||||||
mValues[i].mData = new aiString(v);
|
mValues[i].mData = new aiString(v);
|
||||||
} break;
|
} break;
|
||||||
case AI_AIVECTOR3D: {
|
case AI_AIVECTOR3D: {
|
||||||
aiVector3D v;
|
aiVector3D v;
|
||||||
rhs.Get<aiVector3D>(i, v);
|
rhs.Get<aiVector3D>(static_cast<unsigned int>(i), v);
|
||||||
mValues[i].mData = new aiVector3D(v);
|
mValues[i].mData = new aiVector3D(v);
|
||||||
} break;
|
} break;
|
||||||
case AI_AIMETADATA: {
|
case AI_AIMETADATA: {
|
||||||
aiMetadata v;
|
aiMetadata v;
|
||||||
rhs.Get<aiMetadata>(i, v);
|
rhs.Get<aiMetadata>(static_cast<unsigned int>(i), v);
|
||||||
mValues[i].mData = new aiMetadata(v);
|
mValues[i].mData = new aiMetadata(v);
|
||||||
} break;
|
} break;
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
|
|
Loading…
Reference in New Issue