You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve IA32 build warnings for UINT64 to UINTN conversion
Fixes Windows IA32 build failure:
- error C2220: warning treated as error
- warning C4244: conversion from 'UINT64' to 'UINTN', possible loss of data
Changes:
- Added explicit (UINTN) casts for FileInfo->FileSize when passed to functions expecting UINTN
- Added safety check to ensure file size doesn't exceed maximum UINTN value (~(UINTN)0)
- Fixed lines 229 and 249 in FsReadFileToBuffer and ValidateAcpiTable calls
- Applies to both ACPIPatcher.efi and ACPIPatcherDxe.efi (shared source)
This ensures compatibility with IA32 architecture where UINTN is 32-bit while
FileInfo->FileSize is UINT64, preventing data truncation and build failures.