Bug 670912 - nptest_windows.cpp fails to compile on mingw-w64 r=benjamin
authorJacek Caban <jacek@codeweavers.com>
Tue, 26 Jul 2011 12:24:20 +0200
changeset 73336 de99c5ffafd0a31cd962d506d847b5d2f6607b23
parent 73335 ee078de32bbae5b80b9a10053796ead673a48b03
child 73337 1ad3b39977f14742622aefa82c12d240cae2bd22
push id20851
push usereakhgari@mozilla.com
push dateTue, 26 Jul 2011 18:03:50 +0000
treeherdermozilla-central@ee09d7de0640 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbenjamin
bugs670912
milestone8.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 670912 - nptest_windows.cpp fails to compile on mingw-w64 r=benjamin
dom/plugins/test/testplugin/nptest_windows.cpp
--- a/dom/plugins/test/testplugin/nptest_windows.cpp
+++ b/dom/plugins/test/testplugin/nptest_windows.cpp
@@ -503,17 +503,17 @@ LRESULT CALLBACK PluginWndProc(HWND hWnd
 {
 	WNDPROC wndProc = (WNDPROC)GetProp(hWnd, "MozillaWndProc");
   if (!wndProc)
     return 0;
   InstanceData* pInstance = (InstanceData*)GetProp(hWnd, "InstanceData");
   if (!pInstance)
     return 0;
 
-  NPEvent event = { uMsg, wParam, lParam };
+  NPEvent event = { static_cast<uint16_t>(uMsg), wParam, lParam };
 
   LRESULT result = 0;
   if (handleEventInternal(pInstance, &event, &result))
     return result;
 
   if (uMsg == WM_CLOSE) {
     ClearSubclass((HWND)pInstance->window.window);
   }