Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type correction in Interop (unsigned as signed) #1531

Merged
merged 1 commit into from
Dec 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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