From 1a5046e06bce08f560c0303a9a0b0dd07b50f5fb Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Sun, 23 Apr 2023 23:08:41 +0900 Subject: [PATCH] Fix MSVC compile failure on AppVeyor CI. --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 9e1351b..1e4bb3c 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -1519,7 +1519,7 @@ class TinyGLTF { bool preserve_image_channels_ = false; /// Default false(expand channels to /// RGBA) for backward compatibility. - size_t max_external_file_size_{(std::numeric_limits::max)()}; // Default 2GB + size_t max_external_file_size_{size_t((std::numeric_limits::max)())}; // Default 2GB // Warning & error messages std::string warn_;