Skip to content

Commit

Permalink
Type correction in Interop (unsigned as signed) (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiciAndres authored and josesimoes committed Dec 18, 2019
1 parent 9674f93 commit 77f0748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CLR/Core/CLR_RT_Interop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ HRESULT Interop_Marshal_UINT8( const CLR_RT_StackFrame &stackFrame, unsigned int
NANOCLR_INTEROP_NOCLEANUP();
}

HRESULT Interop_Marshal_UINT16( const CLR_RT_StackFrame &stackFrame, unsigned int paramIndex, signed short &param )
HRESULT Interop_Marshal_UINT16( const CLR_RT_StackFrame &stackFrame, unsigned int paramIndex, unsigned short &param )
{
NATIVE_PROFILE_CLR_CORE();
NANOCLR_INTEROP_CHECK_ARG_TYPE(DATATYPE_I4)
param = stackFrame.ArgN( paramIndex ).NumericByRef().u2;
NANOCLR_INTEROP_NOCLEANUP();
}

HRESULT Interop_Marshal_UINT32( const CLR_RT_StackFrame &stackFrame, unsigned int paramIndex, signed int &param )
HRESULT Interop_Marshal_UINT32( const CLR_RT_StackFrame &stackFrame, unsigned int paramIndex, unsigned int &param )
{
NATIVE_PROFILE_CLR_CORE();
NANOCLR_INTEROP_CHECK_ARG_TYPE(DATATYPE_I4)
Expand Down

0 comments on commit 77f0748

Please sign in to comment.