Taran
unread,Feb 11, 2013, 9:49:01 AM2/11/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to firebre...@googlegroups.com
Having successfully built a 32 bit Firebreath plugin, the client now wants a 64 bit version. I happily ran the prep2010x64 on the previous version that I'd created with, switched all the builds to 64 bit release and got the warnings that are typical of 64 bit porting.
Neither C4267 or C4244 are necessarily show stoppers, but they can be problematic if the sizes being converted from exceed those being converted to. I'm considering #pragma'ing them to remove the warnings but don't want to mess with the Firebreath code without seeing if anyone has found alternatives or has suggestions. I can modify the code to do casting as necessary and throw exceptions should there be an issue, but if there's a standard fix in place or in mind I'd like to take that route so that this project doesn't deviate from Firebreath standard practice. I searched and found nothing related to this in the group archives, so... tossing it out there. I imagine that others may have similar questions in the future.
Warnings are:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-
3>..\..\..\..\src\3rdParty\boost\libs\thread\src\win32\thread.cpp(224): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
5>..\..\..\..\src\PluginAuto\Win\PluginWindowWin.cpp(78): warning C4244: 'argument' : conversion from 'LPARAM' to 'long', possible loss of data
5>..\..\..\..\src\PluginAuto\Win\PluginWindowWin.cpp(78): warning C4244: 'argument' : conversion from 'WPARAM' to 'uint32_t', possible loss of data
5>..\..\..\..\src\PluginAuto\Win\NpapiPluginWin.cpp(153): warning C4244: 'argument' : conversion from 'uintptr_t' to 'uint32_t', possible loss of data
7>..\..\src\NpapiCore\NpapiStream.cpp(43): warning C4267: '=' : conversion from 'size_t' to 'int32_t', possible loss of data
7>..\..\src\NpapiCore\NpapiStream.cpp(44): warning C4267: '=' : conversion from 'size_t' to 'uint32_t', possible loss of data
7>..\..\src\NpapiCore\NpapiStream.cpp(54): warning C4267: 'argument' : conversion from 'size_t' to 'int32_t', possible loss of data
7>..\..\src\NpapiCore\NpapiStream.cpp(90): warning C4267: 'return' : conversion from 'size_t' to 'int32_t', possible loss of data
4>..\..\src\PluginCore\SimpleStreamHelper.cpp(200): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
4>..\..\src\PluginCore\SimpleStreamHelper.cpp(201): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
4>..\..\src\PluginCore\SimpleStreamHelper.cpp(214): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
5>..\..\src\activexcore\registrymap.hpp(44): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
7>..\..\src\NpapiCore\NpapiPlugin.cpp(173): warning C4267: 'return' : conversion from 'size_t' to 'int32_t', possible loss of data
5>..\..\src\activexcore\registrymap.hpp(44): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
5>..\..\src\ActiveXCore\FBControl.h(552): warning C4244: 'argument' : conversion from 'LPARAM' to 'uint32_t', possible loss of data
7>c:\_projects\firebreath-firebreath-df8659e\src\npapicore\NPVariantUtil.h(95): warning C4267: 'argument' : conversion from 'size_t' to 'uint32_t', possible loss of data
7>..\..\src\npapicore\NPVariantUtil.h(99): warning C4267: '=' : conversion from 'size_t' to 'uint32_t', possible loss of data
7>..\..\src\npapicore\NPVariantUtil.h(112): warning C4267: 'argument' : conversion from 'size_t' to 'uint32_t', possible loss of data
7>..\..\src\npapicore\NPVariantUtil.h(116): warning C4267: '=' : conversion from 'size_t' to 'uint32_t', possible loss of data
7>..\..\src\NpapiCore\NpapiBrowserHost.cpp(745): warning C4267: 'argument' : conversion from 'size_t' to 'uint32_t', possible loss of data
7>..\..\src\NpapiCore\NPObjectAPI.cpp(305): warning C4267: 'argument' : conversion from 'size_t' to 'uint32_t', possible loss of data
7>..\..\src\NpapiCore\NPObjectAPI.cpp(307): warning C4267: 'argument' : conversion from 'size_t' to 'uint32_t', possible loss of data
7>..\..\src\NpapiCore\NPObjectAPI.cpp(416): warning C4267: 'argument' : conversion from 'size_t' to 'uint32_t', possible loss of data
7>..\..\src\NpapiCore\NPJavascriptObject.cpp(286): warning C4267: '=' : conversion from 'size_t' to 'uint32_t', possible loss of data
8>.\..\src\activexcore\registrymap.hpp(44): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
8>..\..\src\ActiveXCore\IDispatchAPI.cpp(454): warning C4267: '=' : conversion from 'size_t' to 'UINT', possible loss of data
8>..\..\src\ActiveXCore\IDispatchAPI.cpp(501): warning C4267: '=' : conversion from 'size_t' to 'UINT', possible loss of data
8>..\..\src\ActiveXCore\IDispatchAPI.cpp(575): warning C4267: '=' : conversion from 'size_t' to 'UINT', possible loss of data
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-
Thoughts, comments, suggestions?
Taran