]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseCacheMaintenanceLib/X86Cache.c
Add type cast for better coding style.
[mirror_edk2.git] / MdePkg / Library / BaseCacheMaintenanceLib / X86Cache.c
index 060a146ab0516777d4f8194d9eacfa5eb72938a1..5246893f94fef06aeebdbcc0f7cd406093563015 100644 (file)
@@ -142,7 +142,7 @@ WriteBackInvalidateDataCacheRange (
   // Calculate the cache line alignment\r
   // \r
   End = (Start + Length + (CACHE_LINE_SIZE - 1)) & ~(CACHE_LINE_SIZE - 1);\r
-  Start &= ~(CACHE_LINE_SIZE - 1);\r
+  Start &= ~((UINTN) CACHE_LINE_SIZE - 1);\r
 \r
   do {\r
     Start = (UINTN)AsmFlushCacheLine ((VOID*)Start) + CACHE_LINE_SIZE;\r