diff options
Diffstat (limited to 'src/modules/chat/tools.cpp')
-rw-r--r-- | src/modules/chat/tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 '%':
|