From 04db5b6d853f3084660612c1d2db91d54ec63691 Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Wed, 22 Jun 2022 02:15:51 +0200 Subject: Use fixed width types for enums --- lib/quotient_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/quotient_common.h') diff --git a/lib/quotient_common.h b/lib/quotient_common.h index e087e7d3..233bcaa1 100644 --- a/lib/quotient_common.h +++ b/lib/quotient_common.h @@ -51,7 +51,7 @@ Q_NAMESPACE_EXPORT(QUOTIENT_API) //! These are used for member events. The names here are case-insensitively //! equal to state names used on the wire. //! \sa MemberEventContent, RoomMemberEvent -enum class Membership : unsigned int { +enum class Membership : uint16_t { // Specific power-of-2 values (1,2,4,...) are important here as syncdata.cpp // depends on that, as well as Join being the first in line Invalid = 0x0, @@ -97,7 +97,7 @@ Q_ENUM_NS(RunningPolicy) //! \brief The result of URI resolution using UriResolver //! \sa UriResolver -enum UriResolveResult : short { +enum UriResolveResult : int8_t { StillResolving = -1, UriResolved = 0, CouldNotResolve, -- cgit v1.2.3