summaryrefslogtreecommitdiff
path: root/source/components/utilities/utstrtoul64.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-07-28 17:44:36 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-07-28 17:44:36 +0000
commit834d4c5613e9c57c0b9fba46fa717fd7fb9d5891 (patch)
tree610a3598ffcd1fdcb97c475a59bccac84f41bbdd /source/components/utilities/utstrtoul64.c
parent744d47ba98ced2e2a7d3aff2f894136544386e34 (diff)
Diffstat (limited to 'source/components/utilities/utstrtoul64.c')
-rw-r--r--source/components/utilities/utstrtoul64.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/components/utilities/utstrtoul64.c b/source/components/utilities/utstrtoul64.c
index a3c52b9e7010..d91e9084264c 100644
--- a/source/components/utilities/utstrtoul64.c
+++ b/source/components/utilities/utstrtoul64.c
@@ -419,8 +419,8 @@ AcpiUtStrtoulBase10 (
/* Convert and insert (add) the decimal digit */
- NextValue =
- (ReturnValue * 10) + (AsciiDigit - ACPI_ASCII_ZERO);
+ AcpiUtShortMultiply (ReturnValue, 10, &NextValue);
+ NextValue += (AsciiDigit - ACPI_ASCII_ZERO);
/* Check for overflow (32 or 64 bit) - return current converted value */
@@ -486,8 +486,8 @@ AcpiUtStrtoulBase16 (
/* Convert and insert the hex digit */
- ReturnValue =
- (ReturnValue << 4) | AcpiUtAsciiCharToHex (AsciiDigit);
+ AcpiUtShortShiftLeft (ReturnValue, 4, &ReturnValue);
+ ReturnValue |= AcpiUtAsciiCharToHex (AsciiDigit);
String++;
ValidDigits++;