diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-09-19 11:57:04 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-09-19 12:40:59 +0300 |
commit | b432c08206c2b3da93c502ec458668d675d2839f (patch) | |
tree | 848cb1a88707a543ae86dd7b652147a313c660c6 /extensions/source | |
parent | 6836c341ab3534832f33a9a67c6315d448cfdbd3 (diff) |
WaE: cast to 'void *' from smaller integer type
Change-Id: I85d4a4c3c7bf708daa85dbe7f3af54311c4d7e2e
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/plugin/aqua/sysplug.mm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/source/plugin/aqua/sysplug.mm b/extensions/source/plugin/aqua/sysplug.mm index 371ad7dd9666..366c8d5a150a 100644 --- a/extensions/source/plugin/aqua/sysplug.mm +++ b/extensions/source/plugin/aqua/sysplug.mm @@ -625,7 +625,7 @@ NPError MacPluginComm::NPP_DestroyStream( NPP instance, NPStream* stream, NPErro m_eCall = eNPP_DestroyStream; m_aArgs[0] = (void*)instance; m_aArgs[1] = (void*)stream; - m_aArgs[2] = (void*)reason; + m_aArgs[2] = (void*)(intptr_t)reason; return (NPError)execute(); } @@ -650,8 +650,8 @@ NPError MacPluginComm::NPP_New( NPMIMEType pluginType, NPP instance, uint16_t mo m_eCall = eNPP_New; m_aArgs[0] = (void*)pluginType; m_aArgs[1] = (void*)instance; - m_aArgs[2] = (void*)mode; - m_aArgs[3] = (void*)argc; + m_aArgs[2] = (void*)(intptr_t)mode; + m_aArgs[3] = (void*)(intptr_t)argc; m_aArgs[4] = (void*)argn; m_aArgs[5] = (void*)argv; m_aArgs[6] = (void*)saved; @@ -668,7 +668,7 @@ NPError MacPluginComm::NPP_NewStream( NPP instance, NPMIMEType type, NPStream* s m_aArgs[0] = (void*)instance; m_aArgs[1] = (void*)type; m_aArgs[2] = (void*)stream; - m_aArgs[3] = (void*)seekable; + m_aArgs[3] = (void*)(intptr_t)seekable; m_aArgs[4] = (void*)stype; return (NPError)execute(); } @@ -721,7 +721,7 @@ void MacPluginComm::NPP_URLNotify( NPP instance, const char* url, NPReason reaso m_eCall = eNPP_URLNotify; m_aArgs[0] = (void*)instance; m_aArgs[1] = (void*)url; - m_aArgs[2] = (void*)reason; + m_aArgs[2] = (void*)(intptr_t)reason; m_aArgs[3] = notifyData; execute(); } |