diff options
author | Sean Brogan <sean.brogan@microsoft.com> | 2020-02-07 07:07:13 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-02-07 07:04:16 +0000 |
commit | c6a6193d122a9cb0d11373b8fa43ce95724271f7 (patch) | |
tree | d9dd86b480c4f50485df3a7eda1e87372907d015 /BaseTools/Source/C | |
parent | 3b4ad37ebef1cd3635fde821b43a0edc116b256b (diff) | |
download | edk2-c6a6193d122a9cb0d11373b8fa43ce95724271f7.zip edk2-c6a6193d122a9cb0d11373b8fa43ce95724271f7.tar.gz edk2-c6a6193d122a9cb0d11373b8fa43ce95724271f7.tar.bz2 |
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/C')
-rw-r--r-- | BaseTools/Source/C/Common/PcdValueCommon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/C/Common/PcdValueCommon.c b/BaseTools/Source/C/Common/PcdValueCommon.c index 42e3581..98023e8 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);
|