diff options
author | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2018-12-14 14:40:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-14 14:40:16 -0800 |
commit | fed201aaedc1b1c86d6a3bb3a10894fc46cf5628 (patch) | |
tree | 992298ace885b2faff4e2ff10d5c4c3153c7bc5a /platform/darwin/src | |
parent | 8b7725211eaddcb55e5043a02024736f57618bca (diff) | |
download | qtlocation-mapboxgl-fed201aaedc1b1c86d6a3bb3a10894fc46cf5628.tar.gz |
[ios, macos] Fix number conversions when expressions cast to large numbers. (#13580)
* [ios, macos] Fix number conversions when expressions cast to large numbers.
* [ios, macos] Update changelogs.
Diffstat (limited to 'platform/darwin/src')
-rw-r--r-- | platform/darwin/src/MGLConversion.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/darwin/src/MGLConversion.h b/platform/darwin/src/MGLConversion.h index 9057ed7824..d6de4151b9 100644 --- a/platform/darwin/src/MGLConversion.h +++ b/platform/darwin/src/MGLConversion.h @@ -118,8 +118,7 @@ public: } else if ( _isString(value)) { return { *toString(holder) }; } else if (_isNumber(value)) { - // Need to cast to a double here as the float is otherwise considered a bool... - return { static_cast<double>(*toNumber(holder)) }; + return { *toDouble(holder) }; } else { return {}; } |