From: Attila Molnar Date: Sat, 24 Jan 2015 13:06:42 +0000 (+0100) Subject: Switch to unsigned ints in CommandBase constructor for min and max params X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=8871a024436cb1600a30b2d0346fe9f59f3036e5;p=user%2Fhenk%2Fcode%2Finspircd.git Switch to unsigned ints in CommandBase constructor for min and max params --- diff --git a/include/ctables.h b/include/ctables.h index a69f5c86f..89f3c80fe 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -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)