mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-17 03:11:49 +08:00
Merge pull request #170 from Ybalrid/msvc_warn_fix
Fix C4267 warning (size_t -> int) convertion
This commit is contained in:
commit
0ccc8dc262
@ -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