Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit d194ed3

Browse files
committed
Eliminated VS14 build_sdk compiler warning C4477: 'wprintf' : format string '%g' requires an argument of type 'double', but variadic argument 1 has type 'CLR_INT64'
1 parent 12214fb commit d194ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CLR/Tools/Parser/ByteCodeParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ void MetaData::ByteCode::DumpOpcode( size_t index, LogicalOpcodeDesc& ref )
387387
if(ref.m_ol->m_flags & CLR_RT_OpcodeLookup::ATTRIB_HAS_I4 ) wprintf( L" %d" , ref.m_arg_I4 );
388388
if(ref.m_ol->m_flags & CLR_RT_OpcodeLookup::ATTRIB_HAS_I8 ) wprintf( L" %I64d" , ref.m_arg_I8 );
389389
if(ref.m_ol->m_flags & CLR_RT_OpcodeLookup::ATTRIB_HAS_R4 ) wprintf( L" %f" , (float)ref.m_arg_R4 );
390-
if(ref.m_ol->m_flags & CLR_RT_OpcodeLookup::ATTRIB_HAS_R8 ) wprintf( L" %g" , ref.m_arg_R8 );
390+
if(ref.m_ol->m_flags & CLR_RT_OpcodeLookup::ATTRIB_HAS_R8 ) wprintf( L" %g" , (double)ref.m_arg_R8 );
391391

392392
if(ref.m_ol->m_flags & CLR_RT_OpcodeLookup::ATTRIB_HAS_TARGET)
393393
{

0 commit comments

Comments
 (0)