]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/8254TimerDxe/Timer.c
1) Fix some casting working in X64 building
[mirror_edk2.git] / DuetPkg / 8254TimerDxe / Timer.c
index f74827061e5f2ce1b03c3b890bd99ceeea29e341..c7deadd737604b05fb7145c16820292b5d8e768d 100644 (file)
@@ -265,7 +265,7 @@ Returns:
     //\r
     // Convert TimerPeriod into 8254 counts\r
     //\r
-    TimerCount = DivU64x32 (MultU64x32 (119318, (UINTN) TimerPeriod) + 500000, 1000000);\r
+    TimerCount = DivU64x32 (MultU64x32 (119318, (UINT32) TimerPeriod) + 500000, 1000000);\r
 \r
     //\r
     // Check for overflow\r