summaryrefslogtreecommitdiff
path: root/platform/android/src/style/android_conversion.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/style/android_conversion.hpp')
-rw-r--r--platform/android/src/style/android_conversion.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/android/src/style/android_conversion.hpp b/platform/android/src/style/android_conversion.hpp
index 0ccb704c0a..46ee768348 100644
--- a/platform/android/src/style/android_conversion.hpp
+++ b/platform/android/src/style/android_conversion.hpp
@@ -80,7 +80,8 @@ inline optional<Value> toValue(const mbgl::android::Value& value) {
} else if (value.isString()) {
return { value.toString() };
} else if (value.isNumber()) {
- return { value.toNumber() };
+ //Need to cast to a double here as the float is otherwise considered a bool...
+ return { (double) value.toNumber() };
} else {
return {};
}