diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-24 14:06:42 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-24 14:06:42 +0100 |
commit | 8871a024436cb1600a30b2d0346fe9f59f3036e5 (patch) | |
tree | f0c807e415a1810bb734c2abbb74c3a8563ea6c8 | |
parent | b705c6426818ba8cedfd00d1a84dab8ff0d0f1a0 (diff) |
Switch to unsigned ints in CommandBase constructor for min and max params
-rw-r--r-- | include/ctables.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |