Skip to content

Commit 3552eb4

Browse files
authored
MinPlatformPkg: Fix VS 14.44.35207 Build Errors (#383)
## Description VS 14.44.25207 has increased checking of zero extending values. When building IA32, the UINTN to EFI_PHYSICAL_ADDRESS is being flagged as a C4319 warning. This is highlighting that zero extending may lose the intended behavior. Add explicit cast to value before inverting the value to suppress the warning message. - [ ] Impacts functionality? - [ ] Impacts security? - [ ] Breaking change? - [ ] Includes tests? - [ ] Includes documentation? ## How This Was Tested Local CI build. ## Integration Instructions No integration necessary.
1 parent 4a2fcb6 commit 3552eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MinPlatformPkg/Test/Library/TestPointCheckLib/MmCheckPaging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ TestPointCheckPageTable (
361361
}
362362

363363
PageEntryLength = PageAttributeToLength (PageAttribute);
364-
PageEntryLength = (UINTN)((BaseAddress & ~(PageEntryLength - 1)) + PageEntryLength - BaseAddress);
364+
PageEntryLength = (UINTN)((BaseAddress & ~(EFI_PHYSICAL_ADDRESS)(PageEntryLength - 1)) + PageEntryLength - BaseAddress);
365365

366366
//
367367
// move to next

0 commit comments

Comments
 (0)