diff --git a/include/nlohmann/detail/view/object_index.hpp b/include/nlohmann/detail/view/object_index.hpp index 8888f2345..c77fa6348 100644 --- a/include/nlohmann/detail/view/object_index.hpp +++ b/include/nlohmann/detail/view/object_index.hpp @@ -125,7 +125,7 @@ inline void build_object_indexes(document_data& d) { for (const std::uint32_t i : d.large_objects) { - build_object_index(d, d.tape + i); + build_object_index(d, d.nodes + i); } } diff --git a/single_include/nlohmann/json_view.hpp b/single_include/nlohmann/json_view.hpp index a5625be4e..c9a72ddad 100644 --- a/single_include/nlohmann/json_view.hpp +++ b/single_include/nlohmann/json_view.hpp @@ -3225,7 +3225,7 @@ inline void build_object_indexes(document_data& d) { for (const std::uint32_t i : d.large_objects) { - build_object_index(d, d.tape + i); + build_object_index(d, d.nodes + i); } }