summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source
diff options
context:
space:
mode:
authorSean Brogan <sean.brogan@microsoft.com>2020-02-07 07:07:13 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-02-07 07:04:16 +0000
commitc6a6193d122a9cb0d11373b8fa43ce95724271f7 (patch)
treed9dd86b480c4f50485df3a7eda1e87372907d015 /BaseTools/Source
parent3b4ad37ebef1cd3635fde821b43a0edc116b256b (diff)
downloadedk2-c6a6193d122a9cb0d11373b8fa43ce95724271f7.tar.gz
edk2-c6a6193d122a9cb0d11373b8fa43ce95724271f7.tar.bz2
edk2-c6a6193d122a9cb0d11373b8fa43ce95724271f7.zip
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>
Diffstat (limited to 'BaseTools/Source')
-rw-r--r--BaseTools/Source/C/Common/PcdValueCommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/C/Common/PcdValueCommon.c b/BaseTools/Source/C/Common/PcdValueCommon.c
index 42e3581707..98023e8786 100644
--- a/BaseTools/Source/C/Common/PcdValueCommon.c
+++ b/BaseTools/Source/C/Common/PcdValueCommon.c
@@ -478,7 +478,7 @@ Returns:
//
// 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)) {
fprintf (stderr, "Error reading the input file %s\n", InputFileName);
fclose (InputFile);