From 6be364a555dce699d093f9d49cd14a9b0c174893 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Nov 2014 22:12:34 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@11181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/chat/tools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/chat/tools.cpp') diff --git a/src/modules/chat/tools.cpp b/src/modules/chat/tools.cpp index 160c3157b4..aabd4535fb 100644 --- a/src/modules/chat/tools.cpp +++ b/src/modules/chat/tools.cpp @@ -42,11 +42,11 @@ TCHAR* RemoveFormatting(const TCHAR *pszWord) return NULL; TCHAR *d = szTemp; - int cbLen = mir_tstrlen(pszWord); + size_t cbLen = mir_tstrlen(pszWord); if (cbLen > SIZEOF(szTemp)) cbLen = SIZEOF(szTemp)-1; - for (int i = 0; i < cbLen; ) { + for (size_t i = 0; i < cbLen;) { if (pszWord[i] == '%') { switch (pszWord[i+1]) { case '%': -- cgit v1.2.3