Skip to content

Commit

Permalink
Add a note in the source code about missing changeset id in CRC
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Feb 6, 2022
1 parent d9264f5 commit 8ab3ec4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/osmium/osm/crc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ namespace osmium {
}
}

// XXX Changeset id is not added to the CRC. This is an oversight,
// but we don't want to change this now to keep compatibility.
void update(const osmium::OSMObject& object) noexcept {
update_int64(static_cast<uint64_t>(object.id()));
update_bool(object.visible());
Expand Down

0 comments on commit 8ab3ec4

Please sign in to comment.