From ebc5381c5e46dc9c51d75fad2afc66fbe96919ab Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 30 May 2012 15:07:16 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@235 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Weather/weather_conv.cpp | 4 ++-- protocols/Weather/weather_ini.cpp | 2 +- protocols/Weather/weather_update.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols') 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 #" 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; diff --git a/protocols/Weather/weather_ini.cpp b/protocols/Weather/weather_ini.cpp index b3c0be722c..6273ecad50 100644 --- a/protocols/Weather/weather_ini.cpp +++ b/protocols/Weather/weather_ini.cpp @@ -137,7 +137,7 @@ void WICondListAdd(char *str, WICONDLIST *List) { WICONDITEM *newItem = (WICONDITEM*)mir_alloc(sizeof(WICONDITEM)); wSetData(&newItem->Item, str); - CharLowerBuff(newItem->Item, _tcslen( newItem->Item )); + CharLowerBuff(newItem->Item, (DWORD)_tcslen( newItem->Item )); newItem->Next = NULL; if (List->Tail == NULL) List->Head = newItem; else List->Tail->Next = newItem; diff --git a/protocols/Weather/weather_update.cpp b/protocols/Weather/weather_update.cpp index 832d4237c1..cf3e61826a 100644 --- a/protocols/Weather/weather_update.cpp +++ b/protocols/Weather/weather_update.cpp @@ -572,7 +572,7 @@ int GetWeatherData(HANDLE hContact) if (cbuf[0] == '#') cbuf = TranslateTS(DataValue); DBWriteContactSettingTString(hContact, WEATHERCONDITION, _T2A(Item->Item.Name), cbuf); - CharLowerBuff(DataValue, _tcslen(DataValue)); + CharLowerBuff(DataValue, (DWORD)_tcslen(DataValue)); cond = GetIcon(DataValue, Data); } else if ( _tcsicmp(Item->Item.Unit, _T("Cond")) == 0) { -- cgit v1.2.3