Skip to content

Commit 33e439d

Browse files
committed
fix conversion issue
1 parent fb1809d commit 33e439d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/debug/ee/executioncontrol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ bool InterpreterExecutionControl::UnapplyPatch(DebuggerControllerPatch* patch)
6060
patch, patch->address, patch->opcode));
6161

6262
// Restore the original opcode
63-
*(uint32_t*)patch->address = patch->opcode;
63+
*(uint32_t*)patch->address = (uint32_t)patch->opcode; // Opcodes are stored in uint32_t slots
6464
InitializePRD(&(patch->opcode));
6565

6666
LOG((LF_CORDB, LL_EVERYTHING, "InterpreterEC::UnapplyPatch Restored opcode at %p\n",

0 commit comments

Comments
 (0)