mirror of https://github.com/acidanthera/audk.git
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:
parent
3b4ad37ebe
commit
c6a6193d12
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue