summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2012-10-14 15:04:43 -0700
committerAttila Molnar <attilamolnar@hush.com>2012-10-14 15:04:43 -0700
commit12c0e5d76395ae6348f5d411fef50aa777433f02 (patch)
treedc276ea7741846868bb95b3bf158782a45e029a3 /src
parent78a6d62732f2f0c2752d9de8729a745413ebe64a (diff)
parent90aa5811d17205c4a87f91c0f9ad12c05a03ec44 (diff)
Merge pull request #340 from ChrisTX/insp20+clangwarningsfix
Resolve two warnings clang complains about
Diffstat (limited to 'src')
-rw-r--r--src/snomasks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/snomasks.cpp b/src/snomasks.cpp
index c35c19d4e..4953212a0 100644
--- a/src/snomasks.cpp
+++ b/src/snomasks.cpp
@@ -100,7 +100,7 @@ void Snomask::SendMessage(const std::string &message, char mysnomask)
std::string desc = Description;
if (desc.empty())
- desc = "SNO-" + tolower(mysnomask);
+ desc = std::string("SNO-") + (char)tolower(mysnomask);
if (isupper(mysnomask))
desc = "REMOTE" + desc;
ModResult MOD_RESULT;
@@ -136,7 +136,7 @@ void Snomask::Flush()
{
std::string desc = Description;
if (desc.empty())
- desc = "SNO-" + tolower(LastLetter);
+ desc = std::string("SNO-") + (char)tolower(LastLetter);
if (isupper(LastLetter))
desc = "REMOTE" + desc;
std::string mesg = "(last message repeated "+ConvToStr(Count)+" times)";