Bug 802381 - fix clang build. r=bgirard.
authorRafael Ávila de Espíndola <respindola@mozilla.com>
Tue, 16 Oct 2012 18:33:47 -0400
changeset 110611 c33b8a63580c65b44921dccf694fc4af481c2031
parent 110610 ff8cdd87d8c1b14b83946ea4264571a608969f1d
child 110612 23794d765b02f6e59d459925ac6c5e7e3e3173c4
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersbgirard
bugs802381
milestone19.0a1
Bug 802381 - fix clang build. r=bgirard.
dom/plugins/ipc/PluginInstanceParent.cpp
--- a/dom/plugins/ipc/PluginInstanceParent.cpp
+++ b/dom/plugins/ipc/PluginInstanceParent.cpp
@@ -442,17 +442,17 @@ PluginInstanceParent::AnswerNPN_SetValue
 }
 
 bool
 PluginInstanceParent::AnswerNPN_SetValue_NPPVpluginEventModel(
     const int& eventModel, NPError* result)
 {
 #ifdef XP_MACOSX
     *result = mNPNIface->setvalue(mNPP, NPPVpluginEventModel,
-                                  (void*)eventModel);
+                                  (void*)(intptr_t)eventModel);
     return true;
 #else
     *result = NPERR_GENERIC_ERROR;
     return true;
 #endif
 }
 
 bool