Skip to content

Commit

Permalink
fix: revert id2offset change from #136
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirdEyeSqueegee committed Oct 3, 2023
1 parent c53e4a3 commit d6cd2dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CommonLibSF/include/REL/ID.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ namespace REL
return _instance;
}

[[nodiscard]] constexpr std::size_t id2offset(std::uint64_t a_id) const;
[[nodiscard]] std::size_t id2offset(std::uint64_t a_id) const;

private:
friend class Module;
Expand Down
2 changes: 1 addition & 1 deletion CommonLibSF/src/REL/ID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace REL
}
}

[[nodiscard]] constexpr std::size_t IDDatabase::id2offset(std::uint64_t a_id) const
[[nodiscard]] std::size_t IDDatabase::id2offset(std::uint64_t a_id) const
{
const database::mapping_t elem{ a_id, 0 };
const auto it = std::ranges::lower_bound(
Expand Down

0 comments on commit d6cd2dd

Please sign in to comment.