mirror of
https://github.com/nlohmann/json.git
synced 2026-07-05 10:05:10 +00:00
🚷 fix bug in SAX callback parser
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user