diff options
Diffstat (limited to 'IEView/TextToken.cpp')
-rw-r--r-- | IEView/TextToken.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IEView/TextToken.cpp b/IEView/TextToken.cpp index bfa2913..632a915 100644 --- a/IEView/TextToken.cpp +++ b/IEView/TextToken.cpp @@ -649,7 +649,7 @@ void TextToken::toString(wchar_t **str, int *sizeAlloced) { if (match != NULL) {
match += 2;
wchar_t *match2 = wcsstr(match, L"&");
- int len = match2 != NULL ? match2 - match : wcslen(match);
+ int len = match2 != NULL ? match2 - match : (int)wcslen(match);
match = mir_wstrdup(match);
match[len] = 0;
int width ;
|