]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Common/PcdValueCommon.c
BaseTools/PcdValueCommon: Fix 64-bit host compiler error
[mirror_edk2.git] / 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