diff --git a/json11.cpp b/json11.cpp index 6424554..9803846 100644 --- a/json11.cpp +++ b/json11.cpp @@ -146,10 +146,10 @@ protected: // Comparisons bool equals(const JsonValue * other) const override { - return m_value == reinterpret_cast *>(other)->m_value; + return m_value == static_cast *>(other)->m_value; } bool less(const JsonValue * other) const override { - return m_value < reinterpret_cast *>(other)->m_value; + return m_value < static_cast *>(other)->m_value; } const T m_value;