mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 11:18:51 +02:00
ircd:Ⓜ️:dbs: Clarify integer cast type.
This commit is contained in:
parent
ec0471934a
commit
00d4a488c6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue