diff --git a/ircd/m/room.cc b/ircd/m/room.cc index 559539acd..7447236bf 100644 --- a/ircd/m/room.cc +++ b/ircd/m/room.cc @@ -320,7 +320,7 @@ ircd::m::head(const id::room &room_id, head(std::nothrow, room_id, reinterpret_cast(depth)) }; - if(depth == -1) + if(depth == uint64_t(-1)) throw m::NOT_FOUND{}; return ret;