summaryrefslogtreecommitdiff
path: root/source/compiler/aslutils.c
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2016-03-08 13:06:03 -0800
committerRobert Moore <Robert.Moore@intel.com>2016-03-08 13:06:03 -0800
commit795e136d2ac77c1c8b091fba019b5fe36a44a323 (patch)
tree450cef252df17da339634f165a59be1c3f326c2a /source/compiler/aslutils.c
parent983876792cbdac5e45721ddb953f9bcef2e905c9 (diff)
downloadacpica-795e136d2ac77c1c8b091fba019b5fe36a44a323.tar.gz
Utilities: Update for strtoul64 merger
Fixes a problem with the merger of the two internal versions of this function. Make the maximum integer width (32-bit or 64-bit) a parameter to the function so that it no longer exclusively uses the integer width specified in the DSDT/SSDT. ACPICA BZ 1260
Diffstat (limited to 'source/compiler/aslutils.c')
-rw-r--r--source/compiler/aslutils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/compiler/aslutils.c b/source/compiler/aslutils.c
index 2a45f6e9a..1b7e844fe 100644
--- a/source/compiler/aslutils.c
+++ b/source/compiler/aslutils.c
@@ -978,7 +978,9 @@ UtDoConstant (
char ErrBuf[64];
- Status = AcpiUtStrtoul64 (String, 0, &Converted);
+ Status = AcpiUtStrtoul64 (String, ACPI_ANY_BASE,
+ ACPI_MAX64_BYTE_WIDTH, &Converted);
+
if (ACPI_FAILURE (Status))
{
sprintf (ErrBuf, "%s %s\n", "Conversion error:",