From 84dca1450b8b6e9a89ee3fc83b1adbe635550fb4 Mon Sep 17 00:00:00 2001 From: sean Date: Tue, 21 Mar 2023 16:01:09 +0100 Subject: [PATCH] Fix: size_t is not the same everywhere --- src/fastgltf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fastgltf.cpp b/src/fastgltf.cpp index cbbbc2129..adeb6a5f9 100644 --- a/src/fastgltf.cpp +++ b/src/fastgltf.cpp @@ -2336,9 +2336,11 @@ void fg::glTF::parseSkins(simdjson::ondemand::array skins) { } // skin.joints.reserve(array.count_elements()); for (auto jointValue : array) { - if (jointValue.get_uint64().get(skin.joints.emplace_back()) != SUCCESS) { + uint64_t jointIndex; + if (jointValue.get_uint64().get(jointIndex) != SUCCESS) { SET_ERROR_RETURN(Error::InvalidGltf) } + skin.joints.emplace_back(static_cast(jointIndex)); } break; }