From e935092fa7e1401201e6faadb04b0ae239dd97a5 Mon Sep 17 00:00:00 2001 From: Qiu Shumin Date: Thu, 7 Aug 2014 08:32:54 +0000 Subject: Add type cast for better coding style. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Eric Dong git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15769 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseCacheMaintenanceLib/X86Cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdePkg/Library/BaseCacheMaintenanceLib') diff --git a/MdePkg/Library/BaseCacheMaintenanceLib/X86Cache.c b/MdePkg/Library/BaseCacheMaintenanceLib/X86Cache.c index 060a146ab0..5246893f94 100644 --- a/MdePkg/Library/BaseCacheMaintenanceLib/X86Cache.c +++ b/MdePkg/Library/BaseCacheMaintenanceLib/X86Cache.c @@ -142,7 +142,7 @@ WriteBackInvalidateDataCacheRange ( // Calculate the cache line alignment // End = (Start + Length + (CACHE_LINE_SIZE - 1)) & ~(CACHE_LINE_SIZE - 1); - Start &= ~(CACHE_LINE_SIZE - 1); + Start &= ~((UINTN) CACHE_LINE_SIZE - 1); do { Start = (UINTN)AsmFlushCacheLine ((VOID*)Start) + CACHE_LINE_SIZE; -- cgit v1.2.3