From 8474cf761c704d1afbabe2271254114167c371f7 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 3 Apr 2020 15:17:58 -0700 Subject: [PATCH] ircd::m::room::head: Fix signed unsigned integer comparison. --- matrix/room_head.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/room_head.cc b/matrix/room_head.cc index 547decccd..0acd94821 100644 --- a/matrix/room_head.cc +++ b/matrix/room_head.cc @@ -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"