1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-31 10:24:23 +03:00

🐛 fix bug in SAX callback parser

This commit is contained in:
Niels Lohmann
2020-05-08 14:21:11 +02:00
parent cf4a6552f3
commit f0c6ab4d3b
5 changed files with 58 additions and 66 deletions

View File

@ -2794,7 +2794,7 @@ class basic_json
/// get a pointer to the value (binary)
binary_t* get_impl_ptr(binary_t* /*unused*/) noexcept
{
return is_binary() ? m_value.binary : nullptr;
return is_binary() ? reinterpret_cast<binary_t*>(m_value.binary) : nullptr;
}
/// get a pointer to the value (binary)