summaryrefslogtreecommitdiffstats
path: root/source/compiler/dtexpress.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/dtexpress.c')
-rw-r--r--source/compiler/dtexpress.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/compiler/dtexpress.c b/source/compiler/dtexpress.c
index 9773d88..0bb7c5f 100644
--- a/source/compiler/dtexpress.c
+++ b/source/compiler/dtexpress.c
@@ -142,7 +142,7 @@ DtDoOperator (
if (!RightValue)
{
DtError (ASL_ERROR, ASL_MSG_DIVIDE_BY_ZERO,
- Gbl_CurrentField, Gbl_CurrentField->Value);
+ Gbl_CurrentField, NULL);
return (0);
}
Result = LeftValue / RightValue;
@@ -152,7 +152,7 @@ DtDoOperator (
if (!RightValue)
{
DtError (ASL_ERROR, ASL_MSG_DIVIDE_BY_ZERO,
- Gbl_CurrentField, Gbl_CurrentField->Value);
+ Gbl_CurrentField, NULL);
return (0);
}
Result = LeftValue % RightValue;
@@ -191,7 +191,7 @@ DtDoOperator (
break;
case EXPOP_EQUAL:
- Result = LeftValue = RightValue;
+ Result = LeftValue == RightValue;
break;
case EXPOP_NOT_EQUAL:
@@ -223,13 +223,12 @@ DtDoOperator (
/* Unknown operator */
DtFatal (ASL_MSG_INVALID_EXPRESSION,
- Gbl_CurrentField, Gbl_CurrentField->Value);
+ Gbl_CurrentField, NULL);
return (0);
}
DbgPrint (ASL_DEBUG_OUTPUT,
- "IntegerEval: %s (%8.8X%8.8X %s %8.8X%8.8X) = %8.8X%8.8X\n",
- Gbl_CurrentField->Value,
+ "IntegerEval: (%8.8X%8.8X %s %8.8X%8.8X) = %8.8X%8.8X\n",
ACPI_FORMAT_UINT64 (LeftValue),
DtGetOpName (Operator),
ACPI_FORMAT_UINT64 (RightValue),
OpenPOWER on IntegriCloud