]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Switch to unsigned ints in CommandBase constructor for min and max params
authorAttila Molnar <attilamolnar@hush.com>
Sat, 24 Jan 2015 13:06:42 +0000 (14:06 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Sat, 24 Jan 2015 13:06:42 +0000 (14:06 +0100)
include/ctables.h

index a69f5c86f65e14c3fc18ae7abdd75b4deee4905c..89f3c80fe0a3979d1c0c07317356c2a573c9e971 100644 (file)
@@ -163,7 +163,7 @@ class CoreExport CommandBase : public ServiceProvider
         * @param maxpara Maximum number of parameters this command may have - extra parameters
         * will be tossed into one last space-seperated param.
         */
-       CommandBase(Module* me, const std::string &cmd, int minpara = 0, int maxpara = 0) :
+       CommandBase(Module* me, const std::string& cmd, unsigned int minpara = 0, unsigned int maxpara = 0) :
                ServiceProvider(me, cmd, SERVICE_COMMAND), flags_needed(0), min_params(minpara), max_params(maxpara),
                use_count(0), disabled(false), works_before_reg(false), allow_empty_last_param(true),
                Penalty(1)