From ff0a2e9fb4b3609268a6781c6432368212ce360a Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Mon, 11 May 2020 19:07:00 +0900 Subject: [PATCH] Return type must be int for GetNumberAsInt(). Fixes #258 --- tiny_gltf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {