summaryrefslogtreecommitdiff
path: root/include/membership.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-11-17 00:02:03 +0000
committerPeter Powell <petpow@saberuk.com>2017-11-17 15:33:01 +0000
commit36040be2952186d56a6646ee7d972aaafdd4e31a (patch)
tree72be7108a94dd6bd0ea2842c53ba8890c44d12d8 /include/membership.h
parent3b51dfb1d611a874c3f1138d1c1ec1bb8984334c (diff)
Fix a ton of -Wsign-conversion warnings.
Diffstat (limited to 'include/membership.h')
-rw-r--r--include/membership.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/membership.h b/include/membership.h
index c952d09ae..8630bb673 100644
--- a/include/membership.h
+++ b/include/membership.h
@@ -20,7 +20,7 @@
#pragma once
-uint64_t ConvToUInt64(const std::string& in);
+#include "convto.h"
/**
* Represents a member of a channel.
@@ -60,7 +60,7 @@ class CoreExport Membership : public Extensible, public insp::intrusive_list_nod
*/
static Id IdFromString(const std::string& str)
{
- return ConvToUInt64(str);
+ return ConvToNum<Id>(str);
}
/** Constructor, sets the user and chan fields to the parameters, does NOT update any bookkeeping