diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-16 14:23:01 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-16 14:23:01 +0000 |
commit | a67927ff45a5e88a62c33b48f3643ebf5dd69394 (patch) | |
tree | f0e82e8c9b990dfa99b8b2c433aba7aeb8f06fbe /plugins/Clist_modern | |
parent | ddac55403efc2fa4de7ad484a057bd96c24335c5 (diff) |
type conversion warnings fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11462 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/src/modern_viewmodebar.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Clist_modern/src/modern_viewmodebar.cpp b/plugins/Clist_modern/src/modern_viewmodebar.cpp index 45a9130888..955533506a 100644 --- a/plugins/Clist_modern/src/modern_viewmodebar.cpp +++ b/plugins/Clist_modern/src/modern_viewmodebar.cpp @@ -113,9 +113,9 @@ void CLVM_EnumModes(pfnEnumCallback EnumCallback) int FillModes(char *szsetting)
{
- if (szsetting[0] == (char)246)
+ if (BYTE(szsetting[0]) == 246)
return 1;
- if (szsetting[0] == (char)13)
+ if (szsetting[0] == 13)
return 1;
TCHAR * temp;
@@ -351,7 +351,7 @@ static void SetIconsForColumn(HWND hwndList, HANDLE hItem, HANDLE hItemAll, int static int DeleteAutoModesCallback(char *szsetting)
{
- if (szsetting[0] == (char)13)
+ if (szsetting[0] == 13)
DeleteViewMode(szsetting);
return 1;
}
@@ -925,9 +925,9 @@ static int menuCounter = 0; static int FillMenuCallback(char *szSetting)
{
- if (szSetting[0] == (char)246)
+ if (BYTE(szSetting[0]) == 246)
return 1;
- if (szSetting[0] == (char)13)
+ if (szSetting[0] == 13)
return 1;
TCHAR *temp = mir_utf8decodeT(szSetting);
@@ -1416,7 +1416,7 @@ void ApplyViewMode(const char *Name, bool onlySelector) }
}
- SetWindowText(hwndSelector, ptrT(mir_utf8decodeW((Name[0] == (char)13) ? Name + 1 : Name)));
+ SetWindowText(hwndSelector, ptrT(mir_utf8decodeW((Name[0] == 13) ? Name + 1 : Name)));
pcli->pfnClcBroadcast(CLM_AUTOREBUILD, 0, 0);
CLUI__cliInvalidateRect(pcli->hwndStatus, NULL, FALSE);
|