Fix C4267 warning (size_t -> int) convertion

This commit is contained in:
Arthur Brainville (Ybalrid) 2019-06-15 07:32:38 +02:00
parent f65e06c5ca
commit 811e1d3899

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