Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginUserSettings.cpp

Issue 11449051: Fix 64-bit conversion errors (Closed)
Patch Set: Created Aug. 16, 2013, 2:56 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginUserSettings.cpp
===================================================================
--- a/src/plugin/PluginUserSettings.cpp
+++ b/src/plugin/PluginUserSettings.cpp
@@ -86,7 +86,7 @@
if (indxMethod == countof(s_Methods))
return DISP_E_MEMBERNOTFOUND;
- *rgdispid = indxMethod;
+ *rgdispid = static_cast<DISPID>(indxMethod);
return S_OK;
}
@@ -159,7 +159,7 @@
std::map<CString, CString> languageList = settings->GetFilterLanguageTitleList();
pVarResult->vt = VT_I4;
- pVarResult->lVal = languageList.size();
+ pVarResult->lVal = static_cast<LONG>(languageList.size());
}
}
else if (s_GetLanguageByIndex == method)

Powered by Google App Engine
This is Rietveld