0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-25 09:58:54 +02:00

ircd:Ⓜ️:room::head: Fix signed unsigned integer comparison.

This commit is contained in:
Jason Volk 2020-04-03 15:17:58 -07:00
parent 27a015b9dc
commit 8474cf761c

View file

@ -171,7 +171,7 @@ try
}
assert(limit >= 0);
if(unlikely(opts.limit && limit == opts.limit))
if(unlikely(opts.limit && size_t(limit) == opts.limit))
throw error
{
"Failed to find any events at the room head"