summaryrefslogtreecommitdiff
path: root/GenCCpp.cs
diff options
context:
space:
mode:
Diffstat (limited to 'GenCCpp.cs')
-rw-r--r--GenCCpp.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/GenCCpp.cs b/GenCCpp.cs
index 484050a..6aa29d4 100644
--- a/GenCCpp.cs
+++ b/GenCCpp.cs
@@ -224,7 +224,7 @@ public abstract class GenCCpp : GenTyped
Write("assert(");
if (statement.Message == null)
statement.Cond.Accept(this, CiPriority.Argument);
- else if (statement.Cond is CiLiteral literal && !(bool) literal.Value) {
+ else if (statement.Cond is CiLiteralFalse) {
Write('!');
statement.Message.Accept(this, CiPriority.Primary);
}