summaryrefslogtreecommitdiff
path: root/protocols/Weather/weather_conv.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-05-30 15:07:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-05-30 15:07:16 +0000
commitebc5381c5e46dc9c51d75fad2afc66fbe96919ab (patch)
treef316204e8283731143cb4908f189a51b542b6376 /protocols/Weather/weather_conv.cpp
parentb0075c0b3720c8cb211e8672b4f6ed92c0c28afe (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@235 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Weather/weather_conv.cpp')
-rw-r--r--protocols/Weather/weather_conv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Weather/weather_conv.cpp b/protocols/Weather/weather_conv.cpp
index 2bad50f0fa..9f466c3772 100644
--- a/protocols/Weather/weather_conv.cpp
+++ b/protocols/Weather/weather_conv.cpp
@@ -396,7 +396,7 @@ WORD GetIcon(const TCHAR* cond, WIDATA *Data)
// using the format _T("# Weather <condition name> <counter> #"
mir_sntprintf(LangPackStr, SIZEOF(LangPackStr), _T("# Weather %s %i #"), statusStr[i], j);
mir_sntprintf(LangPackStr1, SIZEOF(LangPackStr1), _T("%s"), TranslateTS(LangPackStr));
- 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)
@@ -415,7 +415,7 @@ void CaseConv(TCHAR *str)
TCHAR *pstr;
BOOL nextUp = TRUE;
- CharLowerBuff(str, _tcslen(str));
+ CharLowerBuff(str, (DWORD)_tcslen(str));
for(pstr = str; *pstr; pstr++) {
if (*pstr==' ' || *pstr=='-')
nextUp = TRUE;