diff options
author | Underground78 <underground78@users.sourceforge.net> | 2013-09-01 11:48:41 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-09-01 17:43:21 +0400 |
commit | 85de06b9f4035b49c02a004edac32939e6b6d133 (patch) | |
tree | b6937fb0704c645207c8437046c0c68bddf36ea7 /src | |
parent | 3f463174be54a432d29fa5b9ac23cb1880a2d41e (diff) |
Fix some implicit int64 to int32 conversion.
Diffstat (limited to 'src')
-rw-r--r-- | src/mpc-hc/MainFrm.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mpc-hc/MainFrm.cpp b/src/mpc-hc/MainFrm.cpp index 1af7da32d..db41d67b2 100644 --- a/src/mpc-hc/MainFrm.cpp +++ b/src/mpc-hc/MainFrm.cpp @@ -13686,10 +13686,10 @@ bool CMainFrame::LoadSubtitle(CString fn, ISubStream** actualStream /*= nullptr* if (REPARSE_ERROR_OK == re.Parse(_T("^[.\\-_ ]+{[^.\\-_ ]+}([.\\-_ ]+{[^.\\-_ ]+})?"), FALSE) && re.Match(subName, &mc)) {
LPCTSTR s, e;
mc.GetMatch(0, &s, &e);
- lang = ISO639XToLanguage(CStringA(s, e - s), true);
+ lang = ISO639XToLanguage(CStringA(s, int(e - s)), true);
if (!lang.IsEmpty()) {
mc.GetMatch(1, &s, &e);
- bHearingImpaired = (CString(s, e -s).CompareNoCase(_T("hi")) == 0);
+ bHearingImpaired = (CString(s, int(e - s)).CompareNoCase(_T("hi")) == 0);
}
}
}
@@ -13701,10 +13701,10 @@ bool CMainFrame::LoadSubtitle(CString fn, ISubStream** actualStream /*= nullptr* if (REPARSE_ERROR_OK == re.Parse(_T(".*?[.\\-_ ]+{[^.\\-_ ]+}([.\\-_ ]+{[^.\\-_ ]+})?$"), FALSE) && re.Match(subName, &mc)) {
LPCTSTR s, e;
mc.GetMatch(0, &s, &e);
- lang = ISO639XToLanguage(CStringA(s, e - s), true);
+ lang = ISO639XToLanguage(CStringA(s, int(e - s)), true);
mc.GetMatch(1, &s, &e);
- CStringA str(s, e - s);
+ CStringA str(s, int(e - s));
if (!lang.IsEmpty() && str.CompareNoCase("hi") == 0) {
bHearingImpaired = true;
|