summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/exutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/exutils.c')
-rw-r--r--sys/contrib/dev/acpica/exutils.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/contrib/dev/acpica/exutils.c b/sys/contrib/dev/acpica/exutils.c
index 30760a89..6d3083d 100644
--- a/sys/contrib/dev/acpica/exutils.c
+++ b/sys/contrib/dev/acpica/exutils.c
@@ -2,7 +2,7 @@
/******************************************************************************
*
* Module Name: exutils - interpreter/scanner utilities
- * $Revision: 108 $
+ * $Revision: 109 $
*
*****************************************************************************/
@@ -372,7 +372,11 @@ AcpiExDigitsNeeded (
/*
* ACPI_INTEGER is unsigned, so we don't worry about a '-'
*/
- CurrentValue = Value;
+ if ((CurrentValue = Value) == 0)
+ {
+ return_VALUE (1);
+ }
+
NumDigits = 0;
while (CurrentValue)
OpenPOWER on IntegriCloud