]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/EbcDxe/EbcInt.c
Refine code to make code run more safely.
[mirror_edk2.git] / MdeModulePkg / Universal / EbcDxe / EbcInt.c
index dddfd58566a3e8f3d6c06ce6229d3a0f4fab6f4f..e94ed8e6c366614694167fb5c0629814b9f4ba13 100644 (file)
@@ -747,7 +747,7 @@ EbcDebugSignalException (
   // Save the exception in the context passed in\r
   //\r
   VmPtr->ExceptionFlags |= ExceptionFlags;\r
-  VmPtr->LastException = ExceptionType;\r
+  VmPtr->LastException = (UINTN) ExceptionType;\r
   //\r
   // If it's a fatal exception, then flag it in the VM context in case an\r
   // attached debugger tries to return from it.\r