From 9955087767d226c09816d562be39be1f1a1e84c5 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 9 Feb 2016 18:01:30 +0200 Subject: [core] Fix potential precision data loss --- src/mbgl/source/source_info.hpp | 4 ++-- src/mbgl/style/style_parser.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mbgl/source/source_info.hpp b/src/mbgl/source/source_info.hpp index 2fb5c2466d..ea134c0210 100644 --- a/src/mbgl/source/source_info.hpp +++ b/src/mbgl/source/source_info.hpp @@ -19,8 +19,8 @@ public: uint16_t minZoom = 0; uint16_t maxZoom = 22; std::string attribution; - std::array center = { { 0, 0, 0 } }; - std::array bounds = { { -180, -90, 180, 90 } }; + std::array center = { { 0, 0, 0 } }; + std::array bounds = { { -180, -90, 180, 90 } }; }; } // namespace mbgl diff --git a/src/mbgl/style/style_parser.cpp b/src/mbgl/style/style_parser.cpp index 7c2a94b206..767bee095d 100644 --- a/src/mbgl/style/style_parser.cpp +++ b/src/mbgl/style/style_parser.cpp @@ -78,7 +78,7 @@ void parseTileJSONMember(const JSValue& value, uint16_t& target, const char* nam } template -void parseTileJSONMember(const JSValue& value, std::array& target, const char* name) { +void parseTileJSONMember(const JSValue& value, std::array& target, const char* name) { if (!value.HasMember(name)) { return; } -- cgit v1.2.1