0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-20 08:51:18 +01:00

ircd:Ⓜ️ Fix narrowing conversion.

This commit is contained in:
Jason Volk 2018-04-27 21:10:50 -07:00
parent dc5ac7c2ac
commit d8b14ade58

View file

@ -986,9 +986,9 @@ ircd::m::events::rfor_each(const uint64_t &start,
const event_filter &filter, const event_filter &filter,
const closure_bool &closure) const closure_bool &closure)
{ {
uint limit auto limit
{ {
json::get<"limit"_>(filter)?: 32U json::get<"limit"_>(filter)?: 32L
}; };
return rfor_each(start, [&filter, &closure, &limit] return rfor_each(start, [&filter, &closure, &limit]
@ -1060,9 +1060,9 @@ ircd::m::events::for_each(const uint64_t &start,
const event_filter &filter, const event_filter &filter,
const closure_bool &closure) const closure_bool &closure)
{ {
uint limit auto limit
{ {
json::get<"limit"_>(filter)?: 32U json::get<"limit"_>(filter)?: 32L
}; };
return for_each(start, [&filter, &closure, &limit] return for_each(start, [&filter, &closure, &limit]