summaryrefslogtreecommitdiff
path: root/include/mbgl/util/size.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/util/size.hpp')
-rw-r--r--include/mbgl/util/size.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/util/size.hpp b/include/mbgl/util/size.hpp
index c0e2fd8180..1af85bcff5 100644
--- a/include/mbgl/util/size.hpp
+++ b/include/mbgl/util/size.hpp
@@ -13,7 +13,7 @@ public:
constexpr Size(const uint32_t width_, const uint32_t height_) : width(width_), height(height_) {
}
- constexpr operator bool() const {
+ constexpr explicit operator bool() const {
return width > 0 && height > 0;
}