BaseTools/PcdValueCommon: Fix 64-bit host compiler error

https://bugzilla.tianocore.org/show_bug.cgi?id=2496

Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>

Reviewed-by: Bob Feng <bob.c.feng@intel.com>
This commit is contained in:
Sean Brogan 2020-02-07 07:07:13 +08:00 committed by mergify[bot]
parent 3b4ad37ebe
commit c6a6193d12
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ Returns:
// //
// Read all of the file contents. // Read all of the file contents.
// //
BytesRead = fread (*FileBuffer, sizeof (UINT8), *FileSize, InputFile); BytesRead = (UINT32)fread (*FileBuffer, sizeof (UINT8), *FileSize, InputFile);
if (BytesRead != *FileSize * sizeof (UINT8)) { if (BytesRead != *FileSize * sizeof (UINT8)) {
fprintf (stderr, "Error reading the input file %s\n", InputFileName); fprintf (stderr, "Error reading the input file %s\n", InputFileName);
fclose (InputFile); fclose (InputFile);