From 4b7b332b9419a01476b813419d89d11c43e1f844 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 7 Jan 2018 23:28:01 +0000 Subject: Fix some char signedness oversights when using bitsets. --- src/modules/m_sethost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_sethost.cpp') diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index b75bac425..678d9d979 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -45,7 +45,7 @@ class CommandSethost : public Command for (std::string::const_iterator x = parameters[0].begin(); x != parameters[0].end(); x++) { - if (!hostmap.test(*x)) + if (!hostmap.test(static_cast(*x))) { user->WriteNotice("*** SETHOST: Invalid characters in hostname"); return CMD_FAILURE; @@ -79,7 +79,7 @@ class ModuleSetHost : public Module cmd.hostmap.reset(); for (std::string::iterator n = hmap.begin(); n != hmap.end(); n++) - cmd.hostmap.set(*n); + cmd.hostmap.set(static_cast(*n)); } Version GetVersion() CXX11_OVERRIDE -- cgit v1.3.1-10-gc9f91