diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/util/size.hpp | 2 |
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; } |