Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/coreclr/debug/daccess/dacdbiimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ TypeHandle DacDbiInterfaceImpl::TypeDataWalk::ReadLoadedTypeArg(TypeHandleReadTy
switch (elementType)
{
case ELEMENT_TYPE_PTR:
_ASSERTE(pData->numTypeArgs == 1);
_ASSERTE(pData->numTypeArgs == (UINT)1);
return PtrOrByRefTypeArg(pData, retrieveWhich);
break;

Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/debug/di/breakpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ HRESULT CordbFunctionBreakpoint::Activate(BOOL fActivate)

pEvent->BreakpointData.funcMetadataToken = m_code->GetMetadataToken();
pEvent->BreakpointData.vmAssembly = m_code->GetModule()->GetRuntimeAssembly();
pEvent->BreakpointData.encVersion = m_code->GetVersion();
pEvent->BreakpointData.encVersion = (UINT)(m_code->GetVersion());

BOOL codeIsIL = m_code->IsIL();

pEvent->BreakpointData.isIL = m_offsetIsIl ? true : false;
pEvent->BreakpointData.offset = m_offset;
pEvent->BreakpointData.offset = (UINT)m_offset;
if (codeIsIL)
{
pEvent->BreakpointData.nativeCodeMethodDescToken = pEvent->BreakpointData.nativeCodeMethodDescToken.NullPtr();
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/debug/di/divalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ HRESULT CordbValue::InternalCreateHandle(CorDebugHandleType handleType,
m_appdomain->GetADToken());

CORDB_ADDRESS addr = GetValueHome() != NULL ? GetValueHome()->GetAddress() : (CORDB_ADDRESS)NULL;
event.CreateHandle.objectToken = CORDB_ADDRESS_TO_PTR(addr);
event.CreateHandle.objectToken = addr;
event.CreateHandle.handleType = handleType;

// Note: two-way event here...
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/debug/di/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ class CleanupRemoteBuffer
true,
pModule->GetAppDomain()->GetADToken());

event.MetadataUpdateRequest.pMetadataStart = CORDB_ADDRESS_TO_PTR(bufferMetaData.pAddress);
event.MetadataUpdateRequest.pMetadataStart = bufferMetaData.pAddress;

// Note: two-way event here...
IfFailThrow(pProcess->SendIPCEvent(&event, sizeof(DebuggerIPCEvent)));
Expand Down Expand Up @@ -548,7 +548,7 @@ void CordbModule::RefreshMetaData()
//
// Update it on the RS
//
bufferMetaData.Init(PTR_TO_CORDB_ADDRESS(event.MetadataUpdateRequest.pMetadataStart), (ULONG) event.MetadataUpdateRequest.nMetadataSize);
bufferMetaData.Init(event.MetadataUpdateRequest.pMetadataStart, (ULONG) event.MetadataUpdateRequest.nMetadataSize);

// init the cleanup object to ensure the buffer gets destroyed later
cleanup.bufferMetaData = bufferMetaData;
Expand Down Expand Up @@ -2217,7 +2217,7 @@ HRESULT CordbModule::ApplyChangesInternal(ULONG cbMetaData,
retEvent->type == DB_IPCE_ENC_ADD_FUNCTION)
{
// Update the function collection to reflect this edit
hr = pModule->UpdateFunction(retEvent->EnCUpdate.memberMetadataToken, retEvent->EnCUpdate.newVersionNumber, NULL);
hr = pModule->UpdateFunction(retEvent->EnCUpdate.memberMetadataToken, (SIZE_T)(ULONG64)retEvent->EnCUpdate.newVersionNumber, NULL);

}
// mark the class and relevant type as old so we update it next time we try to query it
Expand Down
Loading