0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-17 09:28:21 +02:00

ircd:Ⓜ️:dbs: Clarify integer cast type.

This commit is contained in:
Jason Volk 2020-05-19 15:48:16 -07:00
parent ec0471934a
commit 00d4a488c6

View file

@ -271,8 +271,8 @@ ircd::m::dbs::room_events_key(const string_view &amalgam)
const event::idx &event_idx const event::idx &event_idx
{ {
size(amalgam) >= 1 + 8 + 8? size(amalgam) >= 1 + 8 + 8?
*reinterpret_cast<const uint64_t *>(data(amalgam) + 1 + 8): *reinterpret_cast<const event::idx *>(data(amalgam) + 1 + 8):
std::numeric_limits<uint64_t>::max() std::numeric_limits<event::idx>::max()
}; };
// Make sure these are copied rather than ever returning references in // Make sure these are copied rather than ever returning references in