0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-16 17:08:20 +02:00

ircd:Ⓜ️:init::backfill: Fix non-volatile reference to result involving extern conf item.

This commit is contained in:
Jason Volk 2019-09-08 16:54:26 -07:00
parent a6747ad3a0
commit 3e1be63a49

View file

@ -378,10 +378,15 @@ try
m::depth(std::nothrow, room)
};
const int64_t &min_depth
{
std::max(room_depth - ssize_t(m::room::events::viewport_size) * 2, 0L)
};
const ssize_t &viewport_size
{
m::room::events::viewport_size
};
const int64_t min_depth
{
std::max(room_depth - viewport_size * 2, 0L)
};
ssize_t attempted(0);
std::set<std::string, std::less<>> fail;