summaryrefslogtreecommitdiff
path: root/source/components/utilities/uthex.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/utilities/uthex.c')
-rw-r--r--source/components/utilities/uthex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/components/utilities/uthex.c b/source/components/utilities/uthex.c
index 7f507697b6ca..8c7bcccc2f4e 100644
--- a/source/components/utilities/uthex.c
+++ b/source/components/utilities/uthex.c
@@ -183,8 +183,10 @@ AcpiUtHexToAsciiChar (
UINT64 Integer,
UINT32 Position)
{
+ UINT64 Index;
- return (AcpiGbl_HexToAscii[(Integer >> Position) & 0xF]);
+ AcpiUtShortShiftRight (Integer, Position, &Index);
+ return (AcpiGbl_HexToAscii[Index & 0xF]);
}