Skip to content

Commit

Permalink
Fix memory mapping "Invalid argument" exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
oxidase authored and TheMarex committed May 7, 2016
1 parent 3984dea commit 70cd7a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/util/static_rtree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ class StaticRTree
leaf_node_file.write((char *)&current_leaf, sizeof(current_leaf));
processed_objects_count += current_leaf.object_count;
}
leaf_node_file.flush();
leaf_node_file.close();

std::uint32_t processing_level = 0;
while (1 < tree_nodes_in_level.size())
Expand Down

0 comments on commit 70cd7a9

Please sign in to comment.