mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 05:35:59 +08:00
Fix C4267 warning (size_t -> int) convertion
This commit is contained in:
parent
f65e06c5ca
commit
811e1d3899
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user