mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-07-13 07:11:49 +08:00
Merge pull request #195 from ux3d/fix/parse-int-as-double
(also) parse int as double
This commit is contained in:
commit
1f160d5b8f
@ -242,7 +242,7 @@ class Value {
|
||||
boolean_value_(false) {}
|
||||
|
||||
explicit Value(bool b) : type_(BOOL_TYPE) { boolean_value_ = b; }
|
||||
explicit Value(int i) : type_(INT_TYPE) { int_value_ = i; }
|
||||
explicit Value(int i) : type_(INT_TYPE) { int_value_ = i; real_value_ = i; }
|
||||
explicit Value(double n) : type_(REAL_TYPE) { real_value_ = n; }
|
||||
explicit Value(const std::string &s) : type_(STRING_TYPE) {
|
||||
string_value_ = s;
|
||||
|
Loading…
x
Reference in New Issue
Block a user