diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index fb7e28aae..0f4cfcc8b 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -1938,7 +1938,7 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) { static LLCachedControl SpamNewlines(gSavedSettings,"_NACL_AntiSpamNewlines"); boost::sregex_iterator iter(message.begin(), message.end(), NEWLINES); - if(std::abs(std::distance(iter, boost::sregex_iterator())) > SpamNewlines) + if((U32)std::abs(std::distance(iter, boost::sregex_iterator())) > SpamNewlines) { NACLAntiSpamRegistry::blockOnQueue((U32)NACLAntiSpamRegistry::QUEUE_IM,from_id); LLSD args; @@ -3511,7 +3511,7 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data) { static LLCachedControl SpamNewlines(gSavedSettings,"_NACL_AntiSpamNewlines"); boost::sregex_iterator iter(mesg.begin(), mesg.end(), NEWLINES); - if(std::abs(std::distance(iter, boost::sregex_iterator())) > SpamNewlines) + if((U32)std::abs(std::distance(iter, boost::sregex_iterator())) > SpamNewlines) { NACLAntiSpamRegistry::blockOnQueue((U32)NACLAntiSpamRegistry::QUEUE_CHAT,owner_id); LLSD args;