Fixed a print issue when generating listing file, if the output byte is negative...
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 17 Apr 2008 02:17:08 +0000 (02:17 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 17 Apr 2008 02:17:08 +0000 (02:17 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1157 7335b38e-4728-0410-8992-fb3ffe349368

Source/C/VfrCompile/VfrFormPkg.cpp

index 04dc8c7..5e14c04 100644 (file)
@@ -634,7 +634,7 @@ CIfrRecordInfoDB::IfrRecordOutput (
       fprintf (File, ">%08X: ", pNode->mOffset);\r
       if (pNode->mIfrBinBuf != NULL) {\r
         for (Index = 0; Index < pNode->mBinBufLen; Index++) {\r
-          fprintf (File, "%02X ", pNode->mIfrBinBuf[Index]);\r
+          fprintf (File, "%02X ", (UINT8)(pNode->mIfrBinBuf[Index]));\r
         }\r
       }\r
       fprintf (File, "\n");\r