]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/membership.h
Fix a ton of -Wsign-conversion warnings.
[user/henk/code/inspircd.git] / include / membership.h
index c952d09ae88f5859a7e8f3d6655383354ab19d0c..8630bb6730692886bd24bd657536e48aa35e0762 100644 (file)
@@ -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