From 90aa5811d17205c4a87f91c0f9ad12c05a03ec44 Mon Sep 17 00:00:00 2001 From: ChrisTX Date: Sun, 14 Oct 2012 23:58:20 +0200 Subject: Resolve two warnings clang complains about No newline at end of file in consolecolors.h String plus int in snomasks --- src/snomasks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/snomasks.cpp') 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)"; -- cgit v1.2.3