Attempt workaround for MSVC C4245 signed/unsigned mismatch in template 'argument'

https://github.com/upx/upx/issues/435
	modified:   pefile.cpp
This commit is contained in:
John Reiser 2020-11-28 20:23:01 -08:00 committed by Markus F.X.J. Oberhumer
parent ce6b5a0688
commit 052392d97b

View File

@ -3110,7 +3110,9 @@ void PeFile32::pack0(OutputFile *fo, unsigned subsystem_mask,
upx_uint64_t default_imagebase,
bool last_section_rsrc_only)
{
super::pack0<LE32>(fo, ih, oh, subsystem_mask,
// Redundant cast of subsystem_mask tries to workaround
// MSVC complaint C4245 signed/unsigned mismatch
super::pack0<LE32>(fo, ih, oh, (unsigned)subsystem_mask,
default_imagebase, last_section_rsrc_only);
}