diff --git a/tiny_gltf.h b/tiny_gltf.h index 18484ea..7a4e6b5 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -323,7 +323,8 @@ class Value { } // Use this function if you want to have number value as int. - double GetNumberAsInt() const { + // TODO(syoyo): Support int value larger than 32 bits + int GetNumberAsInt() const { if (type_ == REAL_TYPE) { return int(real_value_); } else {