From 515d2dbbe4b223757a6bbe838b329e0d045a6a36 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 14 Dec 2014 12:35:02 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@11400 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Weather/src/weather_conv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Weather/src') diff --git a/plugins/Weather/src/weather_conv.cpp b/plugins/Weather/src/weather_conv.cpp index 4a0a734392..6697ba2891 100644 --- a/plugins/Weather/src/weather_conv.cpp +++ b/plugins/Weather/src/weather_conv.cpp @@ -395,12 +395,12 @@ WORD GetIcon(const TCHAR* cond, WIDATA *Data) // using the format _T("# Weather #" mir_sntprintf(LangPackStr, SIZEOF(LangPackStr), _T("# Weather %s %i #"), statusStr[i], j); _tcsncpy_s(LangPackStr1, TranslateTS(LangPackStr), _TRUNCATE); - CharLowerBuff(LangPackStr1, _tcslen(LangPackStr1)); + CharLowerBuff(LangPackStr1, (DWORD)_tcslen(LangPackStr1)); if (_tcsstr(cond, LangPackStr1) != NULL) return statusValue[i]; // loop until the translation string exists (ie, the translated string is differ from original) } - while ( _tcscmp(TranslateTS(LangPackStr), LangPackStr)); + while (_tcscmp(TranslateTS(LangPackStr), LangPackStr)); } return NA; -- cgit v1.2.3