diff --git a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c index 09b614119d..87c33a7c5d 100644 --- a/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c +++ b/MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c @@ -210,7 +210,7 @@ GetPerformanceCounter ( VOID ) { - return (UINT32)InternalX86GetTimerTick (InternalX86GetApicBase ()); + return (UINT64)(UINT32)InternalX86GetTimerTick (InternalX86GetApicBase ()); } /** @@ -255,5 +255,5 @@ GetPerformanceCounterProperties ( *EndValue = 0; } - return InternalX86GetTimerFrequency (ApicBase); + return (UINT64)InternalX86GetTimerFrequency (ApicBase); }