From d25448905ededfee2a8bcc88f9a4c76b14ddae33 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Mon, 13 Sep 2010 14:26:23 -0700 Subject: Fixed Windows compile error in autocomplete --- linden/indra/newview/llchatbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linden') diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp index 88ef2b5..739c644 100644 --- a/linden/indra/newview/llchatbar.cpp +++ b/linden/indra/newview/llchatbar.cpp @@ -223,7 +223,7 @@ BOOL LLChatBar::handleKeyHere( KEY key, MASK mask ) std::string right_part = ""; S32 cursorPos = mInputEditor->getCursor(); - if (cursorPos < txt.length()) + if (cursorPos < (S32)txt.length()) { right_part = txt.substr(cursorPos); left_part = txt.substr(0, cursorPos); -- cgit v1.1