diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-05 16:55:13 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-05 16:55:13 +0000 |
commit | 11e0f0aac62370c200b73561701c2164abd4a89f (patch) | |
tree | b4e6ea0cb46c49d95a74c5afe082ba78b40421c2 /plugins | |
parent | b78c3f9d33055e436bdd70bb3aa9c22cc0af3aed (diff) |
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11254 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TipperYM/src/mir_smileys.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TipperYM/src/mir_smileys.cpp b/plugins/TipperYM/src/mir_smileys.cpp index 35c55acf36..9c55d8c5c9 100644 --- a/plugins/TipperYM/src/mir_smileys.cpp +++ b/plugins/TipperYM/src/mir_smileys.cpp @@ -41,7 +41,7 @@ SMILEYPARSEINFO Smileys_PreParse(LPCTSTR lpString, int nCount, const char *proto return NULL;
if (nCount == -1)
- nCount = mir_tstrlen(lpString);
+ nCount = (int)mir_tstrlen(lpString);
SMILEYPARSEINFO info = (SMILEYPARSEINFO) mir_calloc(sizeof(tagSMILEYPARSEINFO));
info->pieces = ReplaceSmileys(lpString, nCount, protocol, &info->max_height);
@@ -72,7 +72,7 @@ void Smileys_FreeParse(SMILEYPARSEINFO parseInfo) int Smileys_DrawText(HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat, const char *protocol, SMILEYPARSEINFO parseInfo)
{
if (nCount == -1)
- nCount = mir_tstrlen(lpString);
+ nCount = (int)mir_tstrlen(lpString);
if (uFormat & DT_CALCRECT) {
SIZE text_size = GetTextSize(hDC, lpString, parseInfo, uFormat, parseInfo->max_height, (lpRect->right - lpRect->left));
|