From 8871a024436cb1600a30b2d0346fe9f59f3036e5 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 24 Jan 2015 14:06:42 +0100 Subject: Switch to unsigned ints in CommandBase constructor for min and max params --- include/ctables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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) -- cgit v1.2.3