diff options
author | Dandan Bi <dandan.bi@intel.com> | 2019-01-28 09:43:54 +0800 |
---|---|---|
committer | Eric Dong <eric.dong@intel.com> | 2019-01-29 09:18:53 +0800 |
commit | f34b38fae614c096d9c6afdc02b8448ff38134cd (patch) | |
tree | a85420933331b585c6dd0aee650606d76f85a418 /ShellPkg | |
parent | 66509f90fc6636f22e4ea9d6d11655b2f9268b91 (diff) | |
download | edk2-f34b38fae614c096d9c6afdc02b8448ff38134cd.tar.gz edk2-f34b38fae614c096d9c6afdc02b8448ff38134cd.tar.bz2 edk2-f34b38fae614c096d9c6afdc02b8448ff38134cd.zip |
ShellPkg/UefiShellAcpiViewCommandLib: Fix VS tool chain build failure
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1491
This patch is to update the data type of variable "Offset"
from UINT8 to UINT32 to fix following build issue.
...\Parsers\Pptt\PpttParser.c(193): error C2220:
warning treated as error - no 'object' file generated
...\Parsers\Pptt\PpttParser.c(193): warning C4244: '=':
conversion from 'UINT32' to 'UINT8', possible loss of data
Cc: Krzysztof Koch <krzysztof.koch@arm.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c index d97ddf8e92..bc56fe9ea1 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c @@ -178,7 +178,7 @@ DumpProcessorHierarchyNodeStructure ( IN UINT8 Length
)
{
- UINT8 Offset;
+ UINT32 Offset;
UINT8* PrivateResourcePtr;
UINT32 Index;
CHAR16 Buffer[OUTPUT_FIELD_COLUMN_WIDTH];
|