summaryrefslogtreecommitdiff
path: root/include/ctables.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-11-17 00:02:03 +0000
committerPeter Powell <petpow@saberuk.com>2017-11-17 15:33:01 +0000
commit36040be2952186d56a6646ee7d972aaafdd4e31a (patch)
tree72be7108a94dd6bd0ea2842c53ba8890c44d12d8 /include/ctables.h
parent3b51dfb1d611a874c3f1138d1c1ec1bb8984334c (diff)
Fix a ton of -Wsign-conversion warnings.
Diffstat (limited to 'include/ctables.h')
-rw-r--r--include/ctables.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ctables.h b/include/ctables.h
index 9376dbbcc..bba395919 100644
--- a/include/ctables.h
+++ b/include/ctables.h
@@ -112,7 +112,7 @@ class CoreExport CommandBase : public ServiceProvider
public:
/** User flags needed to execute the command or 0
*/
- char flags_needed;
+ unsigned char flags_needed;
/** Minimum number of parameters command takes
*/
@@ -157,7 +157,7 @@ class CoreExport CommandBase : public ServiceProvider
/** How many seconds worth of penalty does this command have?
*/
- int Penalty;
+ unsigned int Penalty;
/** Create a new command.
* @param me The module which created this command.
@@ -175,7 +175,7 @@ class CoreExport CommandBase : public ServiceProvider
* @param parameter The parameter to encode. Can be modified in place.
* @param index The parameter index (0 == first parameter).
*/
- virtual void EncodeParameter(std::string& parameter, int index);
+ virtual void EncodeParameter(std::string& parameter, unsigned int index);
/** Disable or enable this command.
* @param setting True to disable the command.
@@ -234,7 +234,7 @@ class CoreExport Command : public CommandBase
class CoreExport SplitCommand : public Command
{
public:
- SplitCommand(Module* me, const std::string &cmd, int minpara = 0, int maxpara = 0)
+ SplitCommand(Module* me, const std::string &cmd, unsigned int minpara = 0, unsigned int maxpara = 0)
: Command(me, cmd, minpara, maxpara) {}
virtual CmdResult Handle(const std::vector<std::string>& parameters, User* user);
virtual CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user);