Skip to content

Commit

Permalink
Code cleanup for variable lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-W4 committed Oct 25, 2024
1 parent 3c9eb85 commit 7408cf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/cista/containers/rtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,8 @@ struct rtree {
f.write(reinterpret_cast<char*>(&free_list_), sizeof free_list_);
f.write(reinterpret_cast<char*>(&count_), sizeof count_);
f.write(reinterpret_cast<char*>(&height_), sizeof height_);
for (int i = 0; i < path_hint_.size(); ++i) {
f.write(reinterpret_cast<char*>(&path_hint_[i]), sizeof path_hint_[i]);
for (unsigned int & i : path_hint_) {
f.write(reinterpret_cast<char*>(&i), sizeof i);
}
}

Expand All @@ -796,8 +796,8 @@ struct rtree {
f.read(reinterpret_cast<char*>(&free_list_), sizeof free_list_);
f.read(reinterpret_cast<char*>(&count_), sizeof count_);
f.read(reinterpret_cast<char*>(&height_), sizeof height_);
for (int i = 0; i < path_hint_.size(); ++i) {
f.read(reinterpret_cast<char*>(&path_hint_[i]), sizeof path_hint_[i]);
for (unsigned int & i : path_hint_) {
f.read(reinterpret_cast<char*>(&i), sizeof i);
}
}

Expand Down

0 comments on commit 7408cf7

Please sign in to comment.