]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/PcdValueCommon: Fix 64-bit host compiler error
authorSean Brogan <sean.brogan@microsoft.com>
Thu, 6 Feb 2020 23:07:13 +0000 (07:07 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 7 Feb 2020 07:04:16 +0000 (07:04 +0000)
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>
BaseTools/Source/C/Common/PcdValueCommon.c

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