Fix OS X build error due to warning.
authorandrewfish <andrewfish@c2973edb-eda0-4c78-bc6a-9341b269661f>
Thu, 11 Feb 2010 18:10:37 +0000 (18:10 +0000)
committerandrewfish <andrewfish@c2973edb-eda0-4c78-bc6a-9341b269661f>
Thu, 11 Feb 2010 18:10:37 +0000 (18:10 +0000)
git-svn-id: https://edk2-buildtools.svn.sourceforge.net/svnroot/edk2-buildtools/trunk/BaseTools@1868 c2973edb-eda0-4c78-bc6a-9341b269661f

Source/C/GenFv/GenFvInternalLib.c

index 7549810..a8c8526 100644 (file)
@@ -1084,7 +1084,7 @@ Returns:
       memcpy (*VtfFileImage, FileBuffer, FileSize);\r
       \r
       PrintGuidToBuffer ((EFI_GUID *) FileBuffer, FileGuidString, sizeof (FileGuidString), TRUE); \r
-      fprintf (FvReportFile, "0x%08X %s\n", (unsigned) ((UINT8 *)(*VtfFileImage) - FvImage->FileImage), FileGuidString);\r
+      fprintf (FvReportFile, "0x%08X %s\n", (unsigned) (((UINT8 *)*VtfFileImage) - (UINTN)FvImage->FileImage), FileGuidString);\r
 \r
       free (FileBuffer);\r
       DebugMsg (NULL, 0, 9, "Add VTF FFS file in FV image", NULL);\r