Fix C4267 warning (size_t -> int) convertion

This commit is contained in:
Arthur Brainville (Ybalrid)
2019-06-15 07:32:38 +02:00
parent ec5f0a3653
commit 62235695d0

View File

@@ -3094,7 +3094,7 @@ static bool ParseAccessor(Accessor *accessor, std::string *err, const json &o) {
if (componentType >= TINYGLTF_COMPONENT_TYPE_BYTE &&
componentType <= TINYGLTF_COMPONENT_TYPE_DOUBLE) {
// OK
accessor->componentType = componentType;
accessor->componentType = int(componentType);
} else {
std::stringstream ss;
ss << "Invalid `componentType` in accessor. Got " << componentType