diff options
Diffstat (limited to 'include/mbgl/platform/log.hpp')
-rw-r--r-- | include/mbgl/platform/log.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/platform/log.hpp b/include/mbgl/platform/log.hpp index b95895fd10..8b58921bbe 100644 --- a/include/mbgl/platform/log.hpp +++ b/include/mbgl/platform/log.hpp @@ -61,7 +61,7 @@ public: template<typename T, typename ...Args> static inline const T &Set(Args&& ...args) { Backend = util::make_unique<T>(::std::forward<Args>(args)...); - return *dynamic_cast<T *>(Backend.get()); + return *reinterpret_cast<T *>(Backend.get()); } private: |