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

Commit 12214fb

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

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
@@ -386,7 +386,7 @@ void MetaData::ByteCode::DumpOpcode( size_t index, LogicalOpcodeDesc& ref )
386386
if(ref.m_ol->m_flags & CLR_RT_OpcodeLookup::ATTRIB_HAS_TOKEN) wprintf( L" %08x" , ref.m_token );
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 );
389-
if(ref.m_ol->m_flags & CLR_RT_OpcodeLookup::ATTRIB_HAS_R4 ) wprintf( L" %f" , ref.m_arg_R4 );
389+
if(ref.m_ol->m_flags & CLR_RT_OpcodeLookup::ATTRIB_HAS_R4 ) wprintf( L" %f" , (float)ref.m_arg_R4 );
390390
if(ref.m_ol->m_flags & CLR_RT_OpcodeLookup::ATTRIB_HAS_R8 ) wprintf( L" %g" , ref.m_arg_R8 );
391391

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

0 commit comments

Comments
 (0)