X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EmbeddedPkg%2FEmbeddedMonotonicCounter%2FEmbeddedMonotonicCounter.c;h=8b2e8b0f9937875c0e31b8c829f3f39fa48149d4;hp=66ebe67a92ee537e895b8593fac1ed6b761c2dda;hb=33e4913c5d57fb55d18d22462573dd96308d8970;hpb=ab2a68f47eeb75b6d78103eeeb3f889401a53c5a diff --git a/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c b/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c index 66ebe67a92..8b2e8b0f99 100644 --- a/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c +++ b/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c @@ -49,7 +49,7 @@ GetNextHighMonotonicCount ( gCurrentMonotonicCount += 0x0000000100000000ULL; - *HighCount = RShiftU64 (gCurrentMonotonicCount, 32) & 0xFFFFFFFF; + *HighCount = (UINT32)RShiftU64 (gCurrentMonotonicCount, 32) & 0xFFFFFFFF; return EFI_SUCCESS; }