0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-12 13:01:07 +01: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); assert(limit >= 0);
if(unlikely(opts.limit && limit == opts.limit)) if(unlikely(opts.limit && size_t(limit) == opts.limit))
throw error throw error
{ {
"Failed to find any events at the room head" "Failed to find any events at the room head"