[android] #5978 - fix number property filters [ci skip]

This commit is contained in:
Ivo van Dongen
2016-08-12 12:09:38 -04:00
parent e147887e35
commit ddf0d25845
5 changed files with 21 additions and 6 deletions

View File

@@ -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 {};
}