]> git.proxmox.com Git - mirror_edk2.git/commitdiff
edk2/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 8 May 2008 16:53:42 +0000 (16:53 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 8 May 2008 16:53:42 +0000 (16:53 +0000)
  Add type casting to fix warning generated by the Intel compiler.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5187 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c

index a007bd059568d75d8fde1f423d5240b900cf6df1..c9bf401e1c214270fd4f35e335ffc9375468ab5d 100644 (file)
@@ -179,7 +179,7 @@ Returns:
   // Set RTC configuration after get original time\r
   // The value of bit AIE should be reserved.\r
   //\r
-  RtcWrite (RTC_ADDRESS_REGISTER_B, RTC_INIT_REGISTER_B | (RegisterB.Data & BIT5));\r
+  RtcWrite (RTC_ADDRESS_REGISTER_B, (UINT8)(RTC_INIT_REGISTER_B | (RegisterB.Data & BIT5)));\r
 \r
   //\r
   // Release RTC Lock.\r