From 811e1d3899f41d3396736a12b5dbb071049d6b2e Mon Sep 17 00:00:00 2001 From: "Arthur Brainville (Ybalrid)" Date: Sat, 15 Jun 2019 07:32:38 +0200 Subject: [PATCH] Fix C4267 warning (size_t -> int) convertion --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 89525bc..d1d22e7 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -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