diff options
Diffstat (limited to 'platform/darwin/src/MGLConversion.h')
-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 {}; } |